2009年10月28日 · The underscore.js UMD bundle is now compiled from underlying source modules instead of being the source. From now on, Rollup users have the option to import …
If Underscore is called as a function, it returns a wrapped object that can be used OO-style. This wrapper holds altered versions of all functions added through _.mixin.Wrapped objects may be …
This module is the package entry point for ES module users. In other words, it is the module they are interfacing with when they import from the whole package instead of from a submodule, …
The cornerstone for collection functions, an each implementation, aka forEach.Handles raw objects in addition to array-likes. Treats all sparse array-likes as if they were dense.
Returns a function, that, when invoked, will only be triggered at most once during a given window of time. Normally, the throttled function will run as much as it can, without ever going more …
When a sequence of calls of the returned function ends, the argument function is triggered. The end of a sequence is defined by the wait parameter. If immediate is passed, the argument …
Collections: each (11)Rerun 50 ms. each iterators provide value and iteration count @ 13 ms; each iterators provide value and iteration count @ 15 ms; each iterators provide value and …
import defaults from './defaults.js'; import _ from './underscore.js'; import './templateSettings.js'; When customizing _.templateSettings , if you don’t want to define an interpolation, evaluation …
Return the first value which passes a truth test. var keyFinder = isArrayLike (obj) ? findIndex : findKey; var key = keyFinder (obj, predicate, context); if (key !== void 0 && key !== - 1) return …
throttle.js. import now from './now.js '; Returns a function, that, when invoked, will only be triggered at most once during a given window of time. Normally, the throttled function will run as much …