Submit
Path:
~
/
/
usr
/
share
/
nodejs
/
arrify
/
File Content:
index.js
'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;
Submit
FILE
FOLDER
Name
Size
Permission
Action
index.d.ts
645 bytes
0644
index.js
333 bytes
0644
package.json
555 bytes
0644
N4ST4R_ID | Naxtarrr