sdfsdfs
This commit is contained in:
18
node_modules/pixi.js/lib/assets/utils/convertToList.mjs
generated
vendored
Normal file
18
node_modules/pixi.js/lib/assets/utils/convertToList.mjs
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
const convertToList = (input, transform, forceTransform = false) => {
|
||||
if (!Array.isArray(input)) {
|
||||
input = [input];
|
||||
}
|
||||
if (!transform) {
|
||||
return input;
|
||||
}
|
||||
return input.map((item) => {
|
||||
if (typeof item === "string" || forceTransform) {
|
||||
return transform(item);
|
||||
}
|
||||
return item;
|
||||
});
|
||||
};
|
||||
|
||||
export { convertToList };
|
||||
//# sourceMappingURL=convertToList.mjs.map
|
Reference in New Issue
Block a user