Add _.entries and _.entriesIn aliases.

This commit is contained in:
John-David Dalton
2016-03-06 22:33:59 -08:00
parent c30c43d69e
commit 2c3ab276ea
3 changed files with 42 additions and 9 deletions

View File

@@ -12298,6 +12298,7 @@
* @static
* @memberOf _
* @since 4.0.0
* @alias entries
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the new array of key-value pairs.
@@ -12324,6 +12325,7 @@
* @static
* @memberOf _
* @since 4.0.0
* @alias entriesIn
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the new array of key-value pairs.
@@ -15048,6 +15050,8 @@
lodash.zipWith = zipWith;
// Add aliases.
lodash.entries = toPairs;
lodash.entriesIn = toPairsIn;
lodash.extend = assignIn;
lodash.extendWith = assignInWith;