Bump to v4.10.0.

This commit is contained in:
John-David Dalton
2016-04-10 22:55:59 -07:00
parent b7e3b3febd
commit f10bb8b80b
53 changed files with 162 additions and 158 deletions

14
_castArrayLikeObject.js Normal file
View File

@@ -0,0 +1,14 @@
import isArrayLikeObject from './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 : [];
}
export default castArrayLikeObject;