Bump to v4.10.0.

This commit is contained in:
John-David Dalton
2016-04-10 23:01:56 -07:00
parent 7d39d58e43
commit be0bf2681b
61 changed files with 445 additions and 420 deletions

14
_castArrayLikeObject.js Normal file
View File

@@ -0,0 +1,14 @@
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;