lodash.functions
Advanced tools
Comparing version 4.0.1 to 4.1.0
31
index.js
/** | ||
* lodash 4.0.1 (Custom Build) <https://lodash.com/> | ||
* lodash 4.1.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -9,4 +9,3 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
*/ | ||
var arrayFilter = require('lodash._arrayfilter'), | ||
keys = require('lodash.keys'); | ||
var keys = require('lodash.keys'); | ||
@@ -17,2 +16,26 @@ /** `Object#toString` result references. */ | ||
/** | ||
* A specialized version of `_.filter` for arrays without support for | ||
* iteratee shorthands. | ||
* | ||
* @private | ||
* @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, | ||
resIndex = -1, | ||
result = []; | ||
while (++index < length) { | ||
var value = array[index]; | ||
if (predicate(value, index, array)) { | ||
result[++resIndex] = value; | ||
} | ||
} | ||
return result; | ||
} | ||
/** Used for built-in method references. */ | ||
@@ -29,3 +52,3 @@ var objectProto = Object.prototype; | ||
* The base implementation of `_.functions` which creates an array of | ||
* `object` function property names filtered from those provided. | ||
* `object` function property names filtered from `props`. | ||
* | ||
@@ -32,0 +55,0 @@ * @private |
{ | ||
"name": "lodash.functions", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "The lodash method `_.functions` exported as a module.", | ||
@@ -18,5 +18,4 @@ "homepage": "https://lodash.com/", | ||
"dependencies": { | ||
"lodash._arrayfilter": "^3.0.0", | ||
"lodash.keys": "^4.0.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash.functions v4.0.1 | ||
# lodash.functions v4.1.0 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.functions` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#functions) or [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash.functions) for more details. | ||
See the [documentation](https://lodash.com/docs#functions) or [package source](https://github.com/lodash/lodash/blob/4.1.0-npm-packages/lodash.functions) for more details. |
Sorry, the diff of this file is not supported yet
6282
1
130
- Removedlodash._arrayfilter@^3.0.0
- Removedlodash._arrayfilter@3.0.0(transitive)