mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Bump to v4.13.0.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# lodash-es v4.12.0
|
||||
# lodash-es v4.13.0
|
||||
|
||||
The [Lodash](https://lodash.com/) library exported as [ES](http://www.ecma-international.org/ecma-262/6.0/) modules.
|
||||
|
||||
@@ -7,4 +7,4 @@ Generated using [lodash-cli](https://www.npmjs.com/package/lodash-cli):
|
||||
$ lodash modularize exports=es -o ./
|
||||
```
|
||||
|
||||
See the [package source](https://github.com/lodash/lodash/tree/4.12.0-es) for more details.
|
||||
See the [package source](https://github.com/lodash/lodash/tree/4.13.0-es) for more details.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import getNative from './_getNative';
|
||||
import root from './_root';
|
||||
import getNative from './_getNative.js';
|
||||
import root from './_root.js';
|
||||
|
||||
/* Built-in method references that are verified to be native. */
|
||||
var DataView = getNative(root, 'DataView');
|
||||
|
||||
10
_Hash.js
10
_Hash.js
@@ -1,8 +1,8 @@
|
||||
import hashClear from './_hashClear';
|
||||
import hashDelete from './_hashDelete';
|
||||
import hashGet from './_hashGet';
|
||||
import hashHas from './_hashHas';
|
||||
import hashSet from './_hashSet';
|
||||
import hashClear from './_hashClear.js';
|
||||
import hashDelete from './_hashDelete.js';
|
||||
import hashGet from './_hashGet.js';
|
||||
import hashHas from './_hashHas.js';
|
||||
import hashSet from './_hashSet.js';
|
||||
|
||||
/**
|
||||
* Creates a hash object.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import baseCreate from './_baseCreate';
|
||||
import baseLodash from './_baseLodash';
|
||||
import baseCreate from './_baseCreate.js';
|
||||
import baseLodash from './_baseLodash.js';
|
||||
|
||||
/** Used as references for the maximum length and index of an array. */
|
||||
var MAX_ARRAY_LENGTH = 4294967295;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import listCacheClear from './_listCacheClear';
|
||||
import listCacheDelete from './_listCacheDelete';
|
||||
import listCacheGet from './_listCacheGet';
|
||||
import listCacheHas from './_listCacheHas';
|
||||
import listCacheSet from './_listCacheSet';
|
||||
import listCacheClear from './_listCacheClear.js';
|
||||
import listCacheDelete from './_listCacheDelete.js';
|
||||
import listCacheGet from './_listCacheGet.js';
|
||||
import listCacheHas from './_listCacheHas.js';
|
||||
import listCacheSet from './_listCacheSet.js';
|
||||
|
||||
/**
|
||||
* Creates an list cache object.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import baseCreate from './_baseCreate';
|
||||
import baseLodash from './_baseLodash';
|
||||
import baseCreate from './_baseCreate.js';
|
||||
import baseLodash from './_baseLodash.js';
|
||||
|
||||
/**
|
||||
* The base constructor for creating `lodash` wrapper objects.
|
||||
|
||||
4
_Map.js
4
_Map.js
@@ -1,5 +1,5 @@
|
||||
import getNative from './_getNative';
|
||||
import root from './_root';
|
||||
import getNative from './_getNative.js';
|
||||
import root from './_root.js';
|
||||
|
||||
/* Built-in method references that are verified to be native. */
|
||||
var Map = getNative(root, 'Map');
|
||||
|
||||
10
_MapCache.js
10
_MapCache.js
@@ -1,8 +1,8 @@
|
||||
import mapCacheClear from './_mapCacheClear';
|
||||
import mapCacheDelete from './_mapCacheDelete';
|
||||
import mapCacheGet from './_mapCacheGet';
|
||||
import mapCacheHas from './_mapCacheHas';
|
||||
import mapCacheSet from './_mapCacheSet';
|
||||
import mapCacheClear from './_mapCacheClear.js';
|
||||
import mapCacheDelete from './_mapCacheDelete.js';
|
||||
import mapCacheGet from './_mapCacheGet.js';
|
||||
import mapCacheHas from './_mapCacheHas.js';
|
||||
import mapCacheSet from './_mapCacheSet.js';
|
||||
|
||||
/**
|
||||
* Creates a map cache object to store key-value pairs.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import getNative from './_getNative';
|
||||
import root from './_root';
|
||||
import getNative from './_getNative.js';
|
||||
import root from './_root.js';
|
||||
|
||||
/* Built-in method references that are verified to be native. */
|
||||
var Promise = getNative(root, 'Promise');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import root from './_root';
|
||||
import root from './_root.js';
|
||||
|
||||
/** Built-in value references. */
|
||||
var Reflect = root.Reflect;
|
||||
|
||||
4
_Set.js
4
_Set.js
@@ -1,5 +1,5 @@
|
||||
import getNative from './_getNative';
|
||||
import root from './_root';
|
||||
import getNative from './_getNative.js';
|
||||
import root from './_root.js';
|
||||
|
||||
/* Built-in method references that are verified to be native. */
|
||||
var Set = getNative(root, 'Set');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import MapCache from './_MapCache';
|
||||
import setCacheAdd from './_setCacheAdd';
|
||||
import setCacheHas from './_setCacheHas';
|
||||
import MapCache from './_MapCache.js';
|
||||
import setCacheAdd from './_setCacheAdd.js';
|
||||
import setCacheHas from './_setCacheHas.js';
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
12
_Stack.js
12
_Stack.js
@@ -1,9 +1,9 @@
|
||||
import ListCache from './_ListCache';
|
||||
import stackClear from './_stackClear';
|
||||
import stackDelete from './_stackDelete';
|
||||
import stackGet from './_stackGet';
|
||||
import stackHas from './_stackHas';
|
||||
import stackSet from './_stackSet';
|
||||
import ListCache from './_ListCache.js';
|
||||
import stackClear from './_stackClear.js';
|
||||
import stackDelete from './_stackDelete.js';
|
||||
import stackGet from './_stackGet.js';
|
||||
import stackHas from './_stackHas.js';
|
||||
import stackSet from './_stackSet.js';
|
||||
|
||||
/**
|
||||
* Creates a stack cache object to store key-value pairs.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import root from './_root';
|
||||
import root from './_root.js';
|
||||
|
||||
/** Built-in value references. */
|
||||
var Symbol = root.Symbol;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import root from './_root';
|
||||
import root from './_root.js';
|
||||
|
||||
/** Built-in value references. */
|
||||
var Uint8Array = root.Uint8Array;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import getNative from './_getNative';
|
||||
import root from './_root';
|
||||
import getNative from './_getNative.js';
|
||||
import root from './_root.js';
|
||||
|
||||
/* Built-in method references that are verified to be native. */
|
||||
var WeakMap = getNative(root, 'WeakMap');
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* A specialized version of `baseAggregator` for arrays.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} setter The function to set `accumulator` values.
|
||||
* @param {Function} iteratee The iteratee to transform keys.
|
||||
* @param {Object} accumulator The initial aggregated object.
|
||||
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
function arrayAggregator(array, setter, iteratee, accumulator) {
|
||||
var index = -1,
|
||||
length = array.length;
|
||||
length = array ? array.length : 0;
|
||||
|
||||
while (++index < length) {
|
||||
var value = array[index];
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Array} Returns `array`.
|
||||
*/
|
||||
function arrayEach(array, iteratee) {
|
||||
var index = -1,
|
||||
length = array.length;
|
||||
length = array ? array.length : 0;
|
||||
|
||||
while (++index < length) {
|
||||
if (iteratee(array[index], index, array) === false) {
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Array} Returns `array`.
|
||||
*/
|
||||
function arrayEachRight(array, iteratee) {
|
||||
var length = array.length;
|
||||
var length = array ? array.length : 0;
|
||||
|
||||
while (length--) {
|
||||
if (iteratee(array[length], length, array) === false) {
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`.
|
||||
*/
|
||||
function arrayEvery(array, predicate) {
|
||||
var index = -1,
|
||||
length = array.length;
|
||||
length = array ? array.length : 0;
|
||||
|
||||
while (++index < length) {
|
||||
if (!predicate(array[index], index, array)) {
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {Array} Returns the new filtered array.
|
||||
*/
|
||||
function arrayFilter(array, predicate) {
|
||||
var index = -1,
|
||||
length = array.length,
|
||||
length = array ? array.length : 0,
|
||||
resIndex = 0,
|
||||
result = [];
|
||||
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
import baseIndexOf from './_baseIndexOf';
|
||||
import baseIndexOf from './_baseIndexOf.js';
|
||||
|
||||
/**
|
||||
* A specialized version of `_.includes` for arrays without support for
|
||||
* specifying an index to search from.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to search.
|
||||
* @param {Array} [array] The array to search.
|
||||
* @param {*} target The value to search for.
|
||||
* @returns {boolean} Returns `true` if `target` is found, else `false`.
|
||||
*/
|
||||
function arrayIncludes(array, value) {
|
||||
return !!array.length && baseIndexOf(array, value, 0) > -1;
|
||||
var length = array ? array.length : 0;
|
||||
return !!length && baseIndexOf(array, value, 0) > -1;
|
||||
}
|
||||
|
||||
export default arrayIncludes;
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
* This function is like `arrayIncludes` except that it accepts a comparator.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to search.
|
||||
* @param {Array} [array] The array to search.
|
||||
* @param {*} target The value to search for.
|
||||
* @param {Function} comparator The comparator invoked per element.
|
||||
* @returns {boolean} Returns `true` if `target` is found, else `false`.
|
||||
*/
|
||||
function arrayIncludesWith(array, value, comparator) {
|
||||
var index = -1,
|
||||
length = array.length;
|
||||
length = array ? array.length : 0;
|
||||
|
||||
while (++index < length) {
|
||||
if (comparator(value, array[index])) {
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
* shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Array} Returns the new mapped array.
|
||||
*/
|
||||
function arrayMap(array, iteratee) {
|
||||
var index = -1,
|
||||
length = array.length,
|
||||
length = array ? array.length : 0,
|
||||
result = Array(length);
|
||||
|
||||
while (++index < length) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @param {*} [accumulator] The initial value.
|
||||
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
||||
var index = -1,
|
||||
length = array.length;
|
||||
length = array ? array.length : 0;
|
||||
|
||||
if (initAccum && length) {
|
||||
accumulator = array[++index];
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @param {*} [accumulator] The initial value.
|
||||
* @param {boolean} [initAccum] Specify using the last element of `array` as
|
||||
@@ -11,7 +11,7 @@
|
||||
* @returns {*} Returns the accumulated value.
|
||||
*/
|
||||
function arrayReduceRight(array, iteratee, accumulator, initAccum) {
|
||||
var length = array.length;
|
||||
var length = array ? array.length : 0;
|
||||
if (initAccum && length) {
|
||||
accumulator = array[--length];
|
||||
}
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
* shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
||||
* else `false`.
|
||||
*/
|
||||
function arraySome(array, predicate) {
|
||||
var index = -1,
|
||||
length = array.length;
|
||||
length = array ? array.length : 0;
|
||||
|
||||
while (++index < length) {
|
||||
if (predicate(array[index], index, array)) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import eq from './eq';
|
||||
import eq from './eq.js';
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import eq from './eq';
|
||||
import eq from './eq.js';
|
||||
|
||||
/**
|
||||
* This function is like `assignValue` except that it doesn't assign
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import eq from './eq';
|
||||
import eq from './eq.js';
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import eq from './eq';
|
||||
import eq from './eq.js';
|
||||
|
||||
/**
|
||||
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import baseEach from './_baseEach';
|
||||
import baseEach from './_baseEach.js';
|
||||
|
||||
/**
|
||||
* Aggregates elements of `collection` on `accumulator` with keys transformed
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import copyObject from './_copyObject';
|
||||
import keys from './keys';
|
||||
import copyObject from './_copyObject.js';
|
||||
import keys from './keys.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.assign` without support for multiple sources
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import get from './get';
|
||||
import get from './get.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.at` without support for individual paths.
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
import Stack from './_Stack';
|
||||
import arrayEach from './_arrayEach';
|
||||
import assignValue from './_assignValue';
|
||||
import baseAssign from './_baseAssign';
|
||||
import cloneBuffer from './_cloneBuffer';
|
||||
import copyArray from './_copyArray';
|
||||
import copySymbols from './_copySymbols';
|
||||
import getAllKeys from './_getAllKeys';
|
||||
import getTag from './_getTag';
|
||||
import initCloneArray from './_initCloneArray';
|
||||
import initCloneByTag from './_initCloneByTag';
|
||||
import initCloneObject from './_initCloneObject';
|
||||
import isArray from './isArray';
|
||||
import isBuffer from './isBuffer';
|
||||
import isHostObject from './_isHostObject';
|
||||
import isObject from './isObject';
|
||||
import keys from './keys';
|
||||
import Stack from './_Stack.js';
|
||||
import arrayEach from './_arrayEach.js';
|
||||
import assignValue from './_assignValue.js';
|
||||
import baseAssign from './_baseAssign.js';
|
||||
import cloneBuffer from './_cloneBuffer.js';
|
||||
import copyArray from './_copyArray.js';
|
||||
import copySymbols from './_copySymbols.js';
|
||||
import getAllKeys from './_getAllKeys.js';
|
||||
import getTag from './_getTag.js';
|
||||
import initCloneArray from './_initCloneArray.js';
|
||||
import initCloneByTag from './_initCloneByTag.js';
|
||||
import initCloneObject from './_initCloneObject.js';
|
||||
import isArray from './isArray.js';
|
||||
import isBuffer from './isBuffer.js';
|
||||
import isHostObject from './_isHostObject.js';
|
||||
import isObject from './isObject.js';
|
||||
import keys from './keys.js';
|
||||
|
||||
/** `Object#toString` result references. */
|
||||
var argsTag = '[object Arguments]',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import keys from './keys';
|
||||
import keys from './keys.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.conforms` which doesn't clone `source`.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import isObject from './isObject';
|
||||
import isObject from './isObject.js';
|
||||
|
||||
/** Built-in value references. */
|
||||
var objectCreate = Object.create;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import SetCache from './_SetCache';
|
||||
import arrayIncludes from './_arrayIncludes';
|
||||
import arrayIncludesWith from './_arrayIncludesWith';
|
||||
import arrayMap from './_arrayMap';
|
||||
import baseUnary from './_baseUnary';
|
||||
import cacheHas from './_cacheHas';
|
||||
import SetCache from './_SetCache.js';
|
||||
import arrayIncludes from './_arrayIncludes.js';
|
||||
import arrayIncludesWith from './_arrayIncludesWith.js';
|
||||
import arrayMap from './_arrayMap.js';
|
||||
import baseUnary from './_baseUnary.js';
|
||||
import cacheHas from './_cacheHas.js';
|
||||
|
||||
/** Used as the size to enable large array optimizations. */
|
||||
var LARGE_ARRAY_SIZE = 200;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import baseForOwn from './_baseForOwn';
|
||||
import createBaseEach from './_createBaseEach';
|
||||
import baseForOwn from './_baseForOwn.js';
|
||||
import createBaseEach from './_createBaseEach.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import baseForOwnRight from './_baseForOwnRight';
|
||||
import createBaseEach from './_createBaseEach';
|
||||
import baseForOwnRight from './_baseForOwnRight.js';
|
||||
import createBaseEach from './_createBaseEach.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.forEachRight` without support for iteratee shorthands.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import baseEach from './_baseEach';
|
||||
import baseEach from './_baseEach.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.every` without support for iteratee shorthands.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import isSymbol from './isSymbol';
|
||||
import isSymbol from './isSymbol.js';
|
||||
|
||||
/**
|
||||
* The base implementation of methods like `_.max` and `_.min` which accepts a
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import toInteger from './toInteger';
|
||||
import toLength from './toLength';
|
||||
import toInteger from './toInteger.js';
|
||||
import toLength from './toLength.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.fill` without an iteratee call guard.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import baseEach from './_baseEach';
|
||||
import baseEach from './_baseEach.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.filter` without support for iteratee shorthands.
|
||||
|
||||
@@ -5,12 +5,13 @@
|
||||
* @private
|
||||
* @param {Array} array The array to search.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @param {number} fromIndex The index to search from.
|
||||
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
*/
|
||||
function baseFindIndex(array, predicate, fromRight) {
|
||||
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
||||
var length = array.length,
|
||||
index = fromRight ? length : -1;
|
||||
index = fromIndex + (fromRight ? 1 : -1);
|
||||
|
||||
while ((fromRight ? index-- : ++index < length)) {
|
||||
if (predicate(array[index], index, array)) {
|
||||
|
||||
@@ -1,25 +1,23 @@
|
||||
/**
|
||||
* The base implementation of methods like `_.find` and `_.findKey`, without
|
||||
* support for iteratee shorthands, which iterates over `collection` using
|
||||
* `eachFunc`.
|
||||
* The base implementation of methods like `_.findKey` and `_.findLastKey`,
|
||||
* without support for iteratee shorthands, which iterates over `collection`
|
||||
* using `eachFunc`.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object} collection The collection to search.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @param {Function} eachFunc The function to iterate over `collection`.
|
||||
* @param {boolean} [retKey] Specify returning the key of the found element
|
||||
* instead of the element itself.
|
||||
* @returns {*} Returns the found element or its key, else `undefined`.
|
||||
*/
|
||||
function baseFind(collection, predicate, eachFunc, retKey) {
|
||||
function baseFindKey(collection, predicate, eachFunc) {
|
||||
var result;
|
||||
eachFunc(collection, function(value, key, collection) {
|
||||
if (predicate(value, key, collection)) {
|
||||
result = retKey ? key : value;
|
||||
result = key;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
export default baseFind;
|
||||
export default baseFindKey;
|
||||
@@ -1,5 +1,5 @@
|
||||
import arrayPush from './_arrayPush';
|
||||
import isFlattenable from './_isFlattenable';
|
||||
import arrayPush from './_arrayPush.js';
|
||||
import isFlattenable from './_isFlattenable.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.flatten` with support for restricting flattening.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import createBaseFor from './_createBaseFor';
|
||||
import createBaseFor from './_createBaseFor.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `baseForOwn` which iterates over `object`
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import baseFor from './_baseFor';
|
||||
import keys from './keys';
|
||||
import baseFor from './_baseFor.js';
|
||||
import keys from './keys.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import baseForRight from './_baseForRight';
|
||||
import keys from './keys';
|
||||
import baseForRight from './_baseForRight.js';
|
||||
import keys from './keys.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.forOwnRight` without support for iteratee shorthands.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import createBaseFor from './_createBaseFor';
|
||||
import createBaseFor from './_createBaseFor.js';
|
||||
|
||||
/**
|
||||
* This function is like `baseFor` except that it iterates over properties
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import arrayFilter from './_arrayFilter';
|
||||
import isFunction from './isFunction';
|
||||
import arrayFilter from './_arrayFilter.js';
|
||||
import isFunction from './isFunction.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.functions` which creates an array of
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import castPath from './_castPath';
|
||||
import isKey from './_isKey';
|
||||
import toKey from './_toKey';
|
||||
import castPath from './_castPath.js';
|
||||
import isKey from './_isKey.js';
|
||||
import toKey from './_toKey.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.get` without support for default values.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import arrayPush from './_arrayPush';
|
||||
import isArray from './isArray';
|
||||
import arrayPush from './_arrayPush.js';
|
||||
import isArray from './isArray.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import getPrototype from './_getPrototype';
|
||||
import getPrototype from './_getPrototype.js';
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
@@ -10,7 +10,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
* The base implementation of `_.has` without support for deep paths.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to query.
|
||||
* @param {Object} [object] The object to query.
|
||||
* @param {Array|string} key The key to check.
|
||||
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
||||
*/
|
||||
@@ -18,8 +18,9 @@ function baseHas(object, key) {
|
||||
// Avoid a bug in IE 10-11 where objects with a [[Prototype]] of `null`,
|
||||
// that are composed entirely of index properties, return `false` for
|
||||
// `hasOwnProperty` checks of them.
|
||||
return hasOwnProperty.call(object, key) ||
|
||||
(typeof object == 'object' && key in object && getPrototype(object) === null);
|
||||
return object != null &&
|
||||
(hasOwnProperty.call(object, key) ||
|
||||
(typeof object == 'object' && key in object && getPrototype(object) === null));
|
||||
}
|
||||
|
||||
export default baseHas;
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
* The base implementation of `_.hasIn` without support for deep paths.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to query.
|
||||
* @param {Object} [object] The object to query.
|
||||
* @param {Array|string} key The key to check.
|
||||
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
||||
*/
|
||||
function baseHasIn(object, key) {
|
||||
return key in Object(object);
|
||||
return object != null && key in Object(object);
|
||||
}
|
||||
|
||||
export default baseHasIn;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import indexOfNaN from './_indexOfNaN';
|
||||
import indexOfNaN from './_indexOfNaN.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.indexOf` without `fromIndex` bounds checks.
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import SetCache from './_SetCache';
|
||||
import arrayIncludes from './_arrayIncludes';
|
||||
import arrayIncludesWith from './_arrayIncludesWith';
|
||||
import arrayMap from './_arrayMap';
|
||||
import baseUnary from './_baseUnary';
|
||||
import cacheHas from './_cacheHas';
|
||||
import SetCache from './_SetCache.js';
|
||||
import arrayIncludes from './_arrayIncludes.js';
|
||||
import arrayIncludesWith from './_arrayIncludesWith.js';
|
||||
import arrayMap from './_arrayMap.js';
|
||||
import baseUnary from './_baseUnary.js';
|
||||
import cacheHas from './_cacheHas.js';
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeMin = Math.min;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import baseForOwn from './_baseForOwn';
|
||||
import baseForOwn from './_baseForOwn.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.invert` and `_.invertBy` which inverts
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import apply from './_apply';
|
||||
import castPath from './_castPath';
|
||||
import isKey from './_isKey';
|
||||
import last from './last';
|
||||
import parent from './_parent';
|
||||
import toKey from './_toKey';
|
||||
import apply from './_apply.js';
|
||||
import castPath from './_castPath.js';
|
||||
import isKey from './_isKey.js';
|
||||
import last from './last.js';
|
||||
import parent from './_parent.js';
|
||||
import toKey from './_toKey.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.invoke` without support for individual
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import baseIsEqualDeep from './_baseIsEqualDeep';
|
||||
import isObject from './isObject';
|
||||
import isObjectLike from './isObjectLike';
|
||||
import baseIsEqualDeep from './_baseIsEqualDeep.js';
|
||||
import isObject from './isObject.js';
|
||||
import isObjectLike from './isObjectLike.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.isEqual` which supports partial comparisons
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import Stack from './_Stack';
|
||||
import equalArrays from './_equalArrays';
|
||||
import equalByTag from './_equalByTag';
|
||||
import equalObjects from './_equalObjects';
|
||||
import getTag from './_getTag';
|
||||
import isArray from './isArray';
|
||||
import isHostObject from './_isHostObject';
|
||||
import isTypedArray from './isTypedArray';
|
||||
import Stack from './_Stack.js';
|
||||
import equalArrays from './_equalArrays.js';
|
||||
import equalByTag from './_equalByTag.js';
|
||||
import equalObjects from './_equalObjects.js';
|
||||
import getTag from './_getTag.js';
|
||||
import isArray from './isArray.js';
|
||||
import isHostObject from './_isHostObject.js';
|
||||
import isTypedArray from './isTypedArray.js';
|
||||
|
||||
/** Used to compose bitmasks for comparison styles. */
|
||||
var PARTIAL_COMPARE_FLAG = 2;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Stack from './_Stack';
|
||||
import baseIsEqual from './_baseIsEqual';
|
||||
import Stack from './_Stack.js';
|
||||
import baseIsEqual from './_baseIsEqual.js';
|
||||
|
||||
/** Used to compose bitmasks for comparison styles. */
|
||||
var UNORDERED_COMPARE_FLAG = 1,
|
||||
|
||||
47
_baseIsNative.js
Normal file
47
_baseIsNative.js
Normal file
@@ -0,0 +1,47 @@
|
||||
import isFunction from './isFunction.js';
|
||||
import isHostObject from './_isHostObject.js';
|
||||
import isMasked from './_isMasked.js';
|
||||
import isObject from './isObject.js';
|
||||
import toSource from './_toSource.js';
|
||||
|
||||
/**
|
||||
* Used to match `RegExp`
|
||||
* [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
|
||||
*/
|
||||
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
||||
|
||||
/** Used to detect host constructors (Safari). */
|
||||
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
/** Used to resolve the decompiled source of functions. */
|
||||
var funcToString = Function.prototype.toString;
|
||||
|
||||
/** Used to check objects for own properties. */
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
|
||||
/** Used to detect if a method is native. */
|
||||
var reIsNative = RegExp('^' +
|
||||
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
|
||||
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
||||
);
|
||||
|
||||
/**
|
||||
* The base implementation of `_.isNative` without bad shim checks.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is a native function,
|
||||
* else `false`.
|
||||
*/
|
||||
function baseIsNative(value) {
|
||||
if (!isObject(value) || isMasked(value)) {
|
||||
return false;
|
||||
}
|
||||
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
|
||||
return pattern.test(toSource(value));
|
||||
}
|
||||
|
||||
export default baseIsNative;
|
||||
@@ -1,8 +1,8 @@
|
||||
import baseMatches from './_baseMatches';
|
||||
import baseMatchesProperty from './_baseMatchesProperty';
|
||||
import identity from './identity';
|
||||
import isArray from './isArray';
|
||||
import property from './property';
|
||||
import baseMatches from './_baseMatches.js';
|
||||
import baseMatchesProperty from './_baseMatchesProperty.js';
|
||||
import identity from './identity.js';
|
||||
import isArray from './isArray.js';
|
||||
import property from './property.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.iteratee`.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Reflect from './_Reflect';
|
||||
import iteratorToArray from './_iteratorToArray';
|
||||
import Reflect from './_Reflect.js';
|
||||
import iteratorToArray from './_iteratorToArray.js';
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import baseEach from './_baseEach';
|
||||
import isArrayLike from './isArrayLike';
|
||||
import baseEach from './_baseEach.js';
|
||||
import isArrayLike from './isArrayLike.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.map` without support for iteratee shorthands.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import baseIsMatch from './_baseIsMatch';
|
||||
import getMatchData from './_getMatchData';
|
||||
import matchesStrictComparable from './_matchesStrictComparable';
|
||||
import baseIsMatch from './_baseIsMatch.js';
|
||||
import getMatchData from './_getMatchData.js';
|
||||
import matchesStrictComparable from './_matchesStrictComparable.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.matches` which doesn't clone `source`.
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import baseIsEqual from './_baseIsEqual';
|
||||
import get from './get';
|
||||
import hasIn from './hasIn';
|
||||
import isKey from './_isKey';
|
||||
import isStrictComparable from './_isStrictComparable';
|
||||
import matchesStrictComparable from './_matchesStrictComparable';
|
||||
import toKey from './_toKey';
|
||||
import baseIsEqual from './_baseIsEqual.js';
|
||||
import get from './get.js';
|
||||
import hasIn from './hasIn.js';
|
||||
import isKey from './_isKey.js';
|
||||
import isStrictComparable from './_isStrictComparable.js';
|
||||
import matchesStrictComparable from './_matchesStrictComparable.js';
|
||||
import toKey from './_toKey.js';
|
||||
|
||||
/** Used to compose bitmasks for comparison styles. */
|
||||
var UNORDERED_COMPARE_FLAG = 1,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import baseSum from './_baseSum';
|
||||
import baseSum from './_baseSum.js';
|
||||
|
||||
/** Used as references for various `Number` constants. */
|
||||
var NAN = 0 / 0;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import Stack from './_Stack';
|
||||
import arrayEach from './_arrayEach';
|
||||
import assignMergeValue from './_assignMergeValue';
|
||||
import baseMergeDeep from './_baseMergeDeep';
|
||||
import isArray from './isArray';
|
||||
import isObject from './isObject';
|
||||
import isTypedArray from './isTypedArray';
|
||||
import keysIn from './keysIn';
|
||||
import Stack from './_Stack.js';
|
||||
import arrayEach from './_arrayEach.js';
|
||||
import assignMergeValue from './_assignMergeValue.js';
|
||||
import baseMergeDeep from './_baseMergeDeep.js';
|
||||
import isArray from './isArray.js';
|
||||
import isObject from './isObject.js';
|
||||
import isTypedArray from './isTypedArray.js';
|
||||
import keysIn from './keysIn.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.merge` without support for multiple sources.
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import assignMergeValue from './_assignMergeValue';
|
||||
import baseClone from './_baseClone';
|
||||
import copyArray from './_copyArray';
|
||||
import isArguments from './isArguments';
|
||||
import isArray from './isArray';
|
||||
import isArrayLikeObject from './isArrayLikeObject';
|
||||
import isFunction from './isFunction';
|
||||
import isObject from './isObject';
|
||||
import isPlainObject from './isPlainObject';
|
||||
import isTypedArray from './isTypedArray';
|
||||
import toPlainObject from './toPlainObject';
|
||||
import assignMergeValue from './_assignMergeValue.js';
|
||||
import baseClone from './_baseClone.js';
|
||||
import copyArray from './_copyArray.js';
|
||||
import isArguments from './isArguments.js';
|
||||
import isArray from './isArray.js';
|
||||
import isArrayLikeObject from './isArrayLikeObject.js';
|
||||
import isFunction from './isFunction.js';
|
||||
import isObject from './isObject.js';
|
||||
import isPlainObject from './isPlainObject.js';
|
||||
import isTypedArray from './isTypedArray.js';
|
||||
import toPlainObject from './toPlainObject.js';
|
||||
|
||||
/**
|
||||
* A specialized version of `baseMerge` for arrays and objects which performs
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import isIndex from './_isIndex';
|
||||
import isIndex from './_isIndex.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.nth` which doesn't coerce `n` to an integer.
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import arrayMap from './_arrayMap';
|
||||
import baseIteratee from './_baseIteratee';
|
||||
import baseMap from './_baseMap';
|
||||
import baseSortBy from './_baseSortBy';
|
||||
import baseUnary from './_baseUnary';
|
||||
import compareMultiple from './_compareMultiple';
|
||||
import identity from './identity';
|
||||
import arrayMap from './_arrayMap.js';
|
||||
import baseIteratee from './_baseIteratee.js';
|
||||
import baseMap from './_baseMap.js';
|
||||
import baseSortBy from './_baseSortBy.js';
|
||||
import baseUnary from './_baseUnary.js';
|
||||
import compareMultiple from './_compareMultiple.js';
|
||||
import identity from './identity.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.orderBy` without param guards.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import arrayReduce from './_arrayReduce';
|
||||
import arrayReduce from './_arrayReduce.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.pick` without support for individual
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import getAllKeysIn from './_getAllKeysIn';
|
||||
import getAllKeysIn from './_getAllKeysIn.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.pickBy` without support for iteratee shorthands.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import baseGet from './_baseGet';
|
||||
import baseGet from './_baseGet.js';
|
||||
|
||||
/**
|
||||
* A specialized version of `baseProperty` which supports deep paths.
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import arrayMap from './_arrayMap';
|
||||
import baseIndexOf from './_baseIndexOf';
|
||||
import baseIndexOfWith from './_baseIndexOfWith';
|
||||
import baseUnary from './_baseUnary';
|
||||
import arrayMap from './_arrayMap.js';
|
||||
import baseIndexOf from './_baseIndexOf.js';
|
||||
import baseIndexOfWith from './_baseIndexOfWith.js';
|
||||
import baseUnary from './_baseUnary.js';
|
||||
import copyArray from './_copyArray.js';
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var arrayProto = Array.prototype;
|
||||
@@ -26,6 +27,9 @@ function basePullAll(array, values, iteratee, comparator) {
|
||||
length = values.length,
|
||||
seen = array;
|
||||
|
||||
if (array === values) {
|
||||
values = copyArray(values);
|
||||
}
|
||||
if (iteratee) {
|
||||
seen = arrayMap(array, baseUnary(iteratee));
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import castPath from './_castPath';
|
||||
import isIndex from './_isIndex';
|
||||
import isKey from './_isKey';
|
||||
import last from './last';
|
||||
import parent from './_parent';
|
||||
import toKey from './_toKey';
|
||||
import castPath from './_castPath.js';
|
||||
import isIndex from './_isIndex.js';
|
||||
import isKey from './_isKey.js';
|
||||
import last from './last.js';
|
||||
import parent from './_parent.js';
|
||||
import toKey from './_toKey.js';
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var arrayProto = Array.prototype;
|
||||
|
||||
12
_baseSet.js
12
_baseSet.js
@@ -1,9 +1,9 @@
|
||||
import assignValue from './_assignValue';
|
||||
import castPath from './_castPath';
|
||||
import isIndex from './_isIndex';
|
||||
import isKey from './_isKey';
|
||||
import isObject from './isObject';
|
||||
import toKey from './_toKey';
|
||||
import assignValue from './_assignValue.js';
|
||||
import castPath from './_castPath.js';
|
||||
import isIndex from './_isIndex.js';
|
||||
import isKey from './_isKey.js';
|
||||
import isObject from './isObject.js';
|
||||
import toKey from './_toKey.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.set`.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import identity from './identity';
|
||||
import metaMap from './_metaMap';
|
||||
import identity from './identity.js';
|
||||
import metaMap from './_metaMap.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `setData` without support for hot loop detection.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import baseEach from './_baseEach';
|
||||
import baseEach from './_baseEach.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.some` without support for iteratee shorthands.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import baseSortedIndexBy from './_baseSortedIndexBy';
|
||||
import identity from './identity';
|
||||
import isSymbol from './isSymbol';
|
||||
import baseSortedIndexBy from './_baseSortedIndexBy.js';
|
||||
import identity from './identity.js';
|
||||
import isSymbol from './isSymbol.js';
|
||||
|
||||
/** Used as references for the maximum length and index of an array. */
|
||||
var MAX_ARRAY_LENGTH = 4294967295,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import isSymbol from './isSymbol';
|
||||
import isSymbol from './isSymbol.js';
|
||||
|
||||
/** Used as references for the maximum length and index of an array. */
|
||||
var MAX_ARRAY_LENGTH = 4294967295,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import eq from './eq';
|
||||
import eq from './eq.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import isSymbol from './isSymbol';
|
||||
import isSymbol from './isSymbol.js';
|
||||
|
||||
/** Used as references for various `Number` constants. */
|
||||
var NAN = 0 / 0;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import arrayMap from './_arrayMap';
|
||||
import arrayMap from './_arrayMap.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Symbol from './_Symbol';
|
||||
import isSymbol from './isSymbol';
|
||||
import Symbol from './_Symbol.js';
|
||||
import isSymbol from './isSymbol.js';
|
||||
|
||||
/** Used as references for various `Number` constants. */
|
||||
var INFINITY = 1 / 0;
|
||||
|
||||
12
_baseUniq.js
12
_baseUniq.js
@@ -1,9 +1,9 @@
|
||||
import SetCache from './_SetCache';
|
||||
import arrayIncludes from './_arrayIncludes';
|
||||
import arrayIncludesWith from './_arrayIncludesWith';
|
||||
import cacheHas from './_cacheHas';
|
||||
import createSet from './_createSet';
|
||||
import setToArray from './_setToArray';
|
||||
import SetCache from './_SetCache.js';
|
||||
import arrayIncludes from './_arrayIncludes.js';
|
||||
import arrayIncludesWith from './_arrayIncludesWith.js';
|
||||
import cacheHas from './_cacheHas.js';
|
||||
import createSet from './_createSet.js';
|
||||
import setToArray from './_setToArray.js';
|
||||
|
||||
/** Used as the size to enable large array optimizations. */
|
||||
var LARGE_ARRAY_SIZE = 200;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import baseHas from './_baseHas';
|
||||
import castPath from './_castPath';
|
||||
import isKey from './_isKey';
|
||||
import last from './last';
|
||||
import parent from './_parent';
|
||||
import toKey from './_toKey';
|
||||
import baseHas from './_baseHas.js';
|
||||
import castPath from './_castPath.js';
|
||||
import isKey from './_isKey.js';
|
||||
import last from './last.js';
|
||||
import parent from './_parent.js';
|
||||
import toKey from './_toKey.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.unset`.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import baseGet from './_baseGet';
|
||||
import baseSet from './_baseSet';
|
||||
import baseGet from './_baseGet.js';
|
||||
import baseSet from './_baseSet.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.update`.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import arrayMap from './_arrayMap';
|
||||
import arrayMap from './_arrayMap.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.values` and `_.valuesIn` which creates an
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import baseSlice from './_baseSlice';
|
||||
import baseSlice from './_baseSlice.js';
|
||||
|
||||
/**
|
||||
* The base implementation of methods like `_.dropWhile` and `_.takeWhile`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import LazyWrapper from './_LazyWrapper';
|
||||
import arrayPush from './_arrayPush';
|
||||
import arrayReduce from './_arrayReduce';
|
||||
import LazyWrapper from './_LazyWrapper.js';
|
||||
import arrayPush from './_arrayPush.js';
|
||||
import arrayReduce from './_arrayReduce.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `wrapperValue` which returns the result of
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import arrayPush from './_arrayPush';
|
||||
import baseDifference from './_baseDifference';
|
||||
import baseUniq from './_baseUniq';
|
||||
import arrayPush from './_arrayPush.js';
|
||||
import baseDifference from './_baseDifference.js';
|
||||
import baseUniq from './_baseUniq.js';
|
||||
|
||||
/**
|
||||
* The base implementation of methods like `_.xor`, without support for
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import isArrayLikeObject from './isArrayLikeObject';
|
||||
import isArrayLikeObject from './isArrayLikeObject.js';
|
||||
|
||||
/**
|
||||
* Casts `value` to an empty array if it's not an array like object.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import identity from './identity';
|
||||
import identity from './identity.js';
|
||||
|
||||
/**
|
||||
* Casts `value` to `identity` if it's not a function.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import isArray from './isArray';
|
||||
import stringToPath from './_stringToPath';
|
||||
import isArray from './isArray.js';
|
||||
import stringToPath from './_stringToPath.js';
|
||||
|
||||
/**
|
||||
* Casts `value` to a path array if it's not one.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import baseSlice from './_baseSlice';
|
||||
import baseSlice from './_baseSlice.js';
|
||||
|
||||
/**
|
||||
* Casts `array` to a slice if it's needed.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import baseIndexOf from './_baseIndexOf';
|
||||
import baseIndexOf from './_baseIndexOf.js';
|
||||
|
||||
/**
|
||||
* Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user