lodash.throttle
Advanced tools
Comparing version 3.0.2 to 3.0.3
18
index.js
/** | ||
* lodash 3.0.2 (Custom Build) <https://lodash.com/> | ||
* lodash 3.0.3 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
@@ -22,8 +22,8 @@ * Available under MIT license <https://lodash.com/license> | ||
/** | ||
* Creates a function that only invokes `func` at most once per every `wait` | ||
* milliseconds. The created function comes with a `cancel` method to cancel | ||
* delayed invocations. Provide an options object to indicate that `func` | ||
* should be invoked on the leading and/or trailing edge of the `wait` timeout. | ||
* Subsequent calls to the throttled function return the result of the last | ||
* `func` call. | ||
* Creates a throttled function that only invokes `func` at most once per | ||
* every `wait` milliseconds. The throttled function comes with a `cancel` | ||
* method to cancel delayed invocations. Provide an options object to indicate | ||
* that `func` should be invoked on the leading and/or trailing edge of the | ||
* `wait` timeout. Subsequent calls to the throttled function return the | ||
* result of the last `func` call. | ||
* | ||
@@ -104,5 +104,5 @@ * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked | ||
var type = typeof value; | ||
return type == 'function' || (!!value && type == 'object'); | ||
return !!value && (type == 'object' || type == 'function'); | ||
} | ||
module.exports = throttle; |
{ | ||
"name": "lodash.throttle", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "The modern build of lodash’s `_.throttle` as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.throttle v3.0.2 | ||
# lodash.throttle v3.0.3 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.throttle` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [documentation](https://lodash.com/docs#throttle) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.throttle) for more details. | ||
See the [documentation](https://lodash.com/docs#throttle) or [package source](https://github.com/lodash/lodash/blob/3.0.3-npm-packages/lodash.throttle) for more details. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6512