Sha256: 3a6f533812e836bb88bf2a656ca51860fa0af543461d97c135814c01652f7bb6
Contents?: true
Size: 381 Bytes
Versions: 300
Compression:
Stored size: 381 Bytes
Contents
var isArrayLikeObject = require('./isArrayLikeObject'); /** * Casts `value` to an empty array if it's not an array like object. * * @private * @param {*} value The value to inspect. * @returns {Array|Object} Returns the cast array-like object. */ function castArrayLikeObject(value) { return isArrayLikeObject(value) ? value : []; } module.exports = castArrayLikeObject;
Version data entries
300 entries across 276 versions & 32 rubygems