lodash.transform
Advanced tools
Comparing version
65
index.js
/** | ||
* lodash 4.2.2 (Custom Build) <https://lodash.com/> | ||
* lodash 4.3.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
* Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
* Released under MIT license <https://lodash.com/license> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* Available under MIT license <https://lodash.com/license> | ||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
*/ | ||
@@ -33,2 +33,3 @@ var baseFor = require('lodash._basefor'), | ||
var arrayBufferTag = '[object ArrayBuffer]', | ||
dataViewTag = '[object DataView]', | ||
float32Tag = '[object Float32Array]', | ||
@@ -53,7 +54,8 @@ float64Tag = '[object Float64Array]', | ||
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = | ||
typedArrayTags[dateTag] = typedArrayTags[errorTag] = | ||
typedArrayTags[funcTag] = typedArrayTags[mapTag] = | ||
typedArrayTags[numberTag] = typedArrayTags[objectTag] = | ||
typedArrayTags[regexpTag] = typedArrayTags[setTag] = | ||
typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; | ||
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = | ||
typedArrayTags[errorTag] = typedArrayTags[funcTag] = | ||
typedArrayTags[mapTag] = typedArrayTags[numberTag] = | ||
typedArrayTags[objectTag] = typedArrayTags[regexpTag] = | ||
typedArrayTags[setTag] = typedArrayTags[stringTag] = | ||
typedArrayTags[weakMapTag] = false; | ||
@@ -91,5 +93,7 @@ /** | ||
/** Built-in value references. */ | ||
var getPrototypeOf = Object.getPrototypeOf, | ||
objectCreate = Object.create; | ||
var objectCreate = Object.create; | ||
/* Built-in method references for those with the same name as other `lodash` methods. */ | ||
var nativeGetPrototype = Object.getPrototypeOf; | ||
/** | ||
@@ -120,2 +124,13 @@ * The base implementation of `_.create` without support for assigning | ||
/** | ||
* Gets the `[[Prototype]]` of `value`. | ||
* | ||
* @private | ||
* @param {*} value The value to query. | ||
* @returns {null|Object} Returns the `[[Prototype]]`. | ||
*/ | ||
function getPrototype(value) { | ||
return nativeGetPrototype(Object(value)); | ||
} | ||
/** | ||
* Checks if `value` is classified as an `Array` object. | ||
@@ -125,6 +140,8 @@ * | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @type {Function} | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, | ||
* else `false`. | ||
* @example | ||
@@ -151,5 +168,7 @@ * | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, | ||
* else `false`. | ||
* @example | ||
@@ -174,9 +193,12 @@ * | ||
* | ||
* **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). | ||
* **Note:** This function is loosely based on | ||
* [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`. | ||
* @returns {boolean} Returns `true` if `value` is a valid length, | ||
* else `false`. | ||
* @example | ||
@@ -207,2 +229,3 @@ * | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @category Lang | ||
@@ -236,2 +259,3 @@ * @param {*} value The value to check. | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
@@ -263,5 +287,7 @@ * @param {*} value The value to check. | ||
* @memberOf _ | ||
* @since 3.0.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, | ||
* else `false`. | ||
* @example | ||
@@ -283,4 +309,4 @@ * | ||
* `accumulator` object which is the result of running each of its own enumerable | ||
* properties through `iteratee`, with each invocation potentially mutating | ||
* the `accumulator` object. The iteratee is invoked with four arguments: | ||
* string keyed properties through `iteratee`, with each invocation potentially | ||
* mutating the `accumulator` object. The iteratee is invoked with four arguments: | ||
* (accumulator, value, key, object). Iteratee functions may exit iteration | ||
@@ -291,2 +317,3 @@ * early by explicitly returning `false`. | ||
* @memberOf _ | ||
* @since 1.3.0 | ||
* @category Object | ||
@@ -320,3 +347,3 @@ * @param {Array|Object} object The object to iterate over. | ||
} else { | ||
accumulator = isFunction(Ctor) ? baseCreate(getPrototypeOf(object)) : {}; | ||
accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; | ||
} | ||
@@ -323,0 +350,0 @@ } else { |
{ | ||
"name": "lodash.transform", | ||
"version": "4.2.2", | ||
"version": "4.3.0", | ||
"description": "The lodash method `_.transform` exported as a module.", | ||
@@ -19,5 +19,5 @@ "homepage": "https://lodash.com/", | ||
"lodash._basefor": "~3.0.0", | ||
"lodash._baseiteratee": "~4.5.0", | ||
"lodash._baseiteratee": "~4.6.0", | ||
"lodash.keys": "^4.0.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash.transform v4.2.2 | ||
# lodash.transform v4.3.0 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.transform` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#transform) or [package source](https://github.com/lodash/lodash/blob/4.2.2-npm-packages/lodash.transform) for more details. | ||
See the [documentation](https://lodash.com/docs#transform) or [package source](https://github.com/lodash/lodash/blob/4.3.0-npm-packages/lodash.transform) for more details. |
Sorry, the diff of this file is not supported yet
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
12906
10.52%325
8.33%1
Infinity%+ Added
+ Added
- Removed
Updated