Files
upload-google-play/node_modules/arrify/index.js
Drew Heavner a29f8cd536 Finished action
Adding the monolith node_modules dir for deployment
2019-12-04 09:58:34 -05:00

24 lines
333 B
JavaScript

'use strict';
const arrify = value => {
if (value === null || value === undefined) {
return [];
}
if (Array.isArray(value)) {
return value;
}
if (typeof value === 'string') {
return [value];
}
if (typeof value[Symbol.iterator] === 'function') {
return [...value];
}
return [value];
};
module.exports = arrify;