Sha256: 483ece452379cf4acb9021e81f833039d2ded49ffb25b4673fb89e19f0131712
Contents?: true
Size: 179 Bytes
Versions: 3
Compression:
Stored size: 179 Bytes
Contents
const { isArray } = Array; export default function makeArray(obj) { if (obj === null || obj === undefined) { return []; } return isArray(obj) ? obj : [obj]; }
Version data entries
3 entries across 3 versions & 1 rubygems