Meta tags:
Headings (most frequently used words):
functions, v1, 13, use, script, import, object, downloads, right, click, and, save, as, cdn, urls, with, src, package, installation, monolithic, recommended, modular, engine, compatibility, collection, arrays, or, objects, array, function, uh, ahem, utility, oriented, style, chaining, links, suggested, reading, notes, change, log,
Text of the page (most frequently used words):
the (602), function (211), and (199), #object (165), source (159), for (153), underscore (122), that (121), value (111), list (98), you (95), array (89), returns (88), now (85), diff (82), with (82), name (82), docs (81), functions (79), true (78), return (69), iteratee (67), added (60), will (60), var (60), moe (60), values (52), can (51), all (48), arrays (48), which (48), this (48), each (47), arguments (43), property (43), age (42), objects (41), template (41), are (40), keys (38), first (36), from (36), predicate (36), map (35), version (35), use (34), context (32), number (32), your (31), properties (30), when (29), pass (29), key (28), stooge (28), false (27), passed (26), new (26), string (26), curly (26), num (25), undefined (24), fixes (24), after (24), adds (24), argument (23), like (23), used (23), code (23), only (23), last (23), one (23), larry (23), into (22), instead (22), may (22), not (22), through (21), support (21), test (21), have (21), index (21), javascript (20), also (20), but (20), should (20), any (19), collection (18), isequal (18), result (18), alias (18), time (18), useful (18), documentation (18), 2009 (17), some (17), reduce (17), two (17), passing (17), bind (17), min (17), other (16), same (16), method (16), chain (16), using (16), its (16), more (16), order (16), 2010 (16), own (16), has (16), where (16), call (16), path (16), without (15), elements (15), edge (15), returned (15), partial (15), before (15), umd (15), note (15), filter (14), methods (14), get (14), bug (14), extend (14), better (14), debounce (14), module (14), element (14), three (14), esm (14), stooges (14), october (13), every (13), called (13), range (13), single (13), compatibility (13), throttle (13), null (13), present (13), groupby (13), want (13), pairs (13), well (13), over (12), prototype (12), names (12), times (12), march (12), default (12), clone (12), flatten (12), topath (12), numbers (12), hello (12), initial (11), isempty (11), work (11), january (11), es5 (11), many (11), contains (11), longer (11), indexof (11), defaults (11), invoke (11), copy (11), sortby (11), random (11), given (11), create (11), lastindexof (10), wrapped (10), fixed (10), nan (10), port (10), chaining (10), changes (10), templates (10), optional (10), uses (10), deep (10), length (10), escape (10), script (10), data (10), max (10), omit (10), matches (10), shorthand (10), next (10), commonjs (9), style (9), provided (9), november (9), isnumber (9), rest (9), contributed (9), such (9), takes (9), bindall (9), similar (9), wrapper (9), once (9), uniq (9), require (9), reference (9), pick (9), empty (9), countby (9), count (9), zip (9), creates (9), truth (9), findindex (9), 2021 (9), example (9), syntaxes (9), start (9), sorry (9), wait (9), release (8), original (8), identity (8), was (8), native (8), isnan (8), isarguments (8), most (8), improvements (8), calls (8), isarray (8), improved (8), available (8), unique (8), just (8), 2011 (8), named (8), shuffle (8), html (8), find (8), invocation (8), amd (8), callback (8), compiled (8), 2012 (8), cause (8), sort (8), unzip (8), sample (8), infinity (8), sortedindex (8), bundle (8), modules (8), node (8), issue (8), facilitate (8), memo (8), latest (8), aliases (7), their (7), reduceright (7), sorted (7), works (7), isstring (7), between (7), december (7), isregexp (7), they (7), speed (7), fix (7), out (7), include (7), removed (7), wrap (7), sparse (7), being (7), specified (7), april (7), various (7), difference (7), union (7), both (7), either (7), variable (7), cases (7), always (7), partition (7), matcher (7), restores (7), imports (7), users (7), import (7), testing (7), 100 (7), line (7), alert (7), transformed (7), invoked (7), https (7), noconflict (6), inject (6), compose (6), optimizations (6), multiple (6), iteration (6), faster (6), isnull (6), isdate (6), behavior (6), than (6), tap (6), isfunction (6), within (6), mixin (6), take (6), versions (6), memoize (6), match (6), change (6), iterator (6), intersection (6), isfinite (6), provides (6), set (6), fromindex (6), invert (6), includes (6), indexby (6), constant (6), accepts (6), strings (6), case (6), propertyof (6), findlastindex (6), mapobject (6), package (6), cancel (6), isset (6), isweakmap (6), ismap (6), restarguments (6), 2020 (6), isdataview (6), modular (6), following (6), size (6), preview (6), log (6), operator (6), then (6), need (6), userid (6), passes (6), func (6), returning (6), delay (6), foreach (5), runs (5), utility (5), break (5), consistency (5), thanks (5), equality (5), binding (5), calling (5), previous (5), been (5), down (5), api (5), ruby (5), oop (5), allows (5), isboolean (5), different (5), results (5), backwards (5), annotated (5), required (5), options (5), execute (5), error (5), toarray (5), would (5), type (5), again (5), leading (5), trailing (5), because (5), even (5), rendering (5), very (5), minified (5), findwhere (5), build (5), throttled (5), application (5), placeholder (5), later (5), override (5), noop (5), negate (5), know (5), iserror (5), ismatch (5), enumerable (5), allkeys (5), json (5), including (5), indexes (5), isweakset (5), issymbol (5), chunk (5), ecmascript (5), enhancements (5), comments (5), caused (5), istypedarray (5), isarraybuffer (5), monolithic (5), exports (5), security (5), step (5), notes (5), functional (5), reverse (5), obj (5), words (5), word (5), current (5), interpolate (5), otherwise (5), reject (5), looks (5), isobject (5), moe1 (5), destination (5), compact (5), turn (5), startindex (5), second (5), found (5), issorted (5), patches (4), foldl (4), patch (4), chained (4), perform (4), environments (4), python (4), depending (4), browser (4), bound (4), easier (4), checks (4), minor (4), handy (4), implementation (4), considered (4), internet (4), explorer (4), escapes (4), already (4), allow (4), non (4), copies (4), items (4), july (4), immediately (4), particular (4), escaped (4), there (4), stop (4), old (4), way (4), pre (4), option (4), statement (4), significantly (4), specific (4), september (4), engine (4), partially (4), 2013 (4), much (4), production (4), transpose (4), internally (4), split (4), itself (4), component (4), memoized (4), iterates (4), extendown (4), copied (4), 2015 (4), generate (4), extendscript (4), overridden (4), these (4), depth (4), corresponding (4), recommended (4), modularization (4), development (4), dataview (4), arraybuffer (4), contrib (4), parallel (4), 2022 (4), library (4), until (4), counts (4), settings (4), author (4), sources (4), unescape (4), opposite (4), uniqueid (4), findkey (4), firstname (4), produces (4), initialize (4), math (4), isundefined (4), window (4), 101 (4), iselement (4), does (4), nested (4), end (4), everyoneelse (4), raceresults (4), happy (4), console (4), sneezy (4), bashful (4), sleepy (4), doc (4), monthlymeeting (4), run (4), defer (4), label (4), search (4), pluck (4), year (4), npm (4), cdn (4), com (4), email (4), protected (4), comprehensive (3), iterators (3), third (3), load (3), aliased (3), foldr (3), oriented (3), full (3), browsers (3), lists (3), integers (3), regexp (3), lots (3), little (3), comparisons (3), less (3), side (3), safer (3), february (3), stable (3), since (3), ability (3), recent (3), real (3), makes (3), june (3), computations (3), august (3), interpolations (3), able (3), try (3), stack (3), correctly (3), don (3), item (3), insertion (3), together (3), groups (3), determine (3), what (3), give (3), escaping (3), syntax (3), supports (3), common (3), several (3), evaluated (3), double (3), dynamic (3), define (3), templatesettings (3), hasownproperty (3), immediate (3), shallow (3), working (3), allowed (3), creating (3), made (3), loop (3), filtering (3), remove (3), certain (3), easy (3), performing (3), simple (3), regression (3), become (3), optimization (3), short (3), disable (3), execution (3), inverse (3), apply (3), bower (3), java (3), cache (3), containing (3), falsy (3), customize (3), custom (3), known (3), feb (3), scheduled (3), help (3), notation (3), unittests (3), inserted (3), underlying (3), rollup (3), enable (3), links (3), file (3), introduced (3), while (3), terminology (3), continuous (3), integration (3), arbitrary (3), below (3), comparison (3), typed (3), compare (3), future (3), ready (3), based (3), shorthands (3), entry (3), releases (3), inclusive (3), duplicate (3), github (3), addition (3), page (3), throw (3), convert (3), them (3), meaningfully (3), cannot (3), helpers (3), applicable (3), languages (3), capitalize (3), perl (3), php (3), lumberjack (3), night (3), retrieve (3), project (3), mustache (3), regex (3), expressions (3), evaluate (3), input (3), free (3), hash (3), exist (3), transform (3), invokes (3), jquery (3), fears (3), worst (3), flavor (3), gold (3), silver (3), bronze (3), white (3), withsnowwhite (3), dopey (3), grumpy (3), reliably (3), welcome (3), rendernotes (3), debounced (3), milliseconds (3), soon (3), forwarded (3), fibonacci (3), running (3), compute (3), hashfunction (3), subtract (3), buttonview (3), onclick (3), methodnames (3), ted (3), ranked (3), shakespeare (3), 1611 (3), listed (3), entire (3), compatible (3), jsdelivr (3), net (3), variables (2), renamed (2), details (2), see (2), providing (2), operations (2), having (2), breakloop (2), tail (2), head (2), flexibly (2), numbered (2), speeds (2), parameter (2), definition (2), andri (2), möll (2), noah (2), sloan (2), doing (2), check (2), safe (2), delimiters (2), duck (2), typing (2), bugfix (2), compared (2), correct (2), semantics (2), expensive (2), repeated (2), caching (2), signature (2), changed (2), incompatible (2), handling (2), ryan (2), tenney (2), removes (2), catch (2), family (2), iterated (2), istype (2), sets (2), flag (2), finding (2), mode (2), direct (2), errors (2), complement (2), directly (2), mirror (2), criteria (2), modified (2), fisher (2), yates (2), shuffled (2), select (2), detect (2), wraps (2), types (2), constructors (2), constructor (2), fire (2), upon (2), rate (2), grouping (2), james (2), important (2), trigger (2), asynchronous (2), apis (2), wish (2), tries (2), about (2), tweaks (2), numeric (2), explicitly (2), reason (2), scope (2), characters (2), regexes (2), requirejs (2), normal (2), download (2), reverted (2), collect (2), performs (2), sometimes (2), server (2), under (2), how (2), accept (2), large (2), algorithm (2), updated (2), simplified (2), bugs (2), adobe (2), changing (2), zero (2), minimum (2), overrides (2), debugging (2), relating (2), terms (2), filled (2), optimized (2), timestamp (2), higher (2), tell (2), those (2), perhaps (2), 2014 (2), variadic (2), handle (2), guards (2), assign (2), against (2), cross (2), fallback (2), tells (2), cousin (2), isarraylike (2), performance (2), setting (2), system (2), es6 (2), looking (2), 2018 (2), back (2), consistent (2), smallest (2), treeshaking (2), export (2), among (2), extension (2), clarifications (2), replaces (2), disallowed (2), primary (2), alternative (2), advised (2), complete (2), separate (2), builds (2), still (2), article (2), dependencies (2), during (2), especially (2), equal (2), paths (2), throughout (2), purpose (2), unintentionally (2), lost (2), state (2), could (2), included (2), cve (2), condition (2), avoid (2), bundling (2), funding (2), merges (2), repository (2), updates (2), final (2), clarifies (2), circumstances (2), service (2), 2026 (2), target (2), contain (2), control (2), unsortable (2), convertible (2), depend (2), built (2), operators (2), itertools (2), manipulation (2), closest (2), wrapping (2), objective (2), swift (2), lua (2), continue (2), lyrics (2), okay (2), day (2), finished (2), identical (2), possible (2), via (2), client (2), answer (2), however (2), specify (2), render (2), symbols (2), interpolated (2), part (2), applied (2), templating (2), print (2), epithet (2), convenient (2), integer (2), implementing (2), cheese (2), crumpets (2), stuff (2), nonsense (2), ham (2), doesn (2), defaultvalue (2), dom (2), prefix (2), builtiniteratee (2), chelsea (2), anything (2), touppercase (2), fabio (2), useless (2), weakset (2), weakmap (2), symbol (2), o_o (2), date (2), luckynumbers (2), attrs (2), curlysworstfear (2), fetching (2), originaltopath (2), risk (2), 200 (2), interceptor (2), duplicated (2), icecream (2), chocolate (2), sprinkles (2), filling (2), filtered (2), alternatively (2), indicating (2), optionally (2), props (2), moses (2), louis (2), jerome (2), val (2), silly (2), consolenonwinners (2), sendconsolations (2), another (2), snow (2), wins (2), parameters (2), explicit (2), degraded (2), determined (2), greet (2), exclaim (2), isfalsy (2), boolean (2), memoizes (2), onwards (2), invoking (2), actually (2), lazylayout (2), interval (2), accidental (2), button (2), stopped (2), period (2), chunks (2), updating (2), settimeout (2), 1000 (2), logged (2), appears (2), sub5 (2), subfrom20 (2), open (2), clicked (2), onhover (2), click (2), whenever (2), greeting (2), isprime (2), binary (2), occurrence (2), matching (2), matrix (2), transformation (2), computes (2), flattens (2), level (2), nesting (2), whose (2), satisfy (2), odd (2), group (2), criterion (2), guard (2), currently (2), methodname (2), circuits (2), stops (2), traversing (2), title (2), newsroom (2), york (2), right (2), finally (2), alerts (2), likely (2), es3 (2), features (2), install (2), meteor (2), cdnjs (2), cloudflare (2), ajax (2), libs (2), unpkg (2), unreleased (2), master (2), gzipped (2), uncompressed (2), tidelift (2), patreon (2), quick (2), read (2), assigned, merged, make, compliant, narwhal, kris, kowal, dmitry, baranovskiy, iterating, stock, interpreters, rhino, invocations, marc, andré, cournoyer, middle, unwrapping, clarity, started, setup, stopiteration, debatable, tests, ensuring, luke, sutton, generating, kirill, ishanov, completeness, checking, dates, rely, enabling, shrunk, karl, guertin, safety, implementations, suggestion, expected, magnitude, saw, injecting, effects, logging, evgeniy, dolzhenko, tostring, robert, kieffer, quotes, rick, strahl, blog, post, mobilesafari, customizable, jed, schmidt, justin, tulloss, htmlcollections, nodelists, major, incorporates, refactors, cleaner, internals, mile, frawley, things, months, beta, comparing, opera, technically, thing, questionable, watch, preserves, whitespace, multiline, mistakenly, pointing, intersect, favor, traces, exceptions, thrown, interoperability, host, backslashes, compliance, guaranteed, avoiding, properly, strict, callee, merging, representing, manufacturing, ever, delegates, throws, requires, mirrors, trying, aggregates, except, cyclic, structures, kit, cambridge, preferred, never, ducktype, limited, thereafter, 170, 266, shortcut, exporting, loaders, appcelerator, titanium, 335, 338, tony, lukasavage, burke, mutated, 329, making, 366, leave, semicolons, statements, 369, smart, entities, regardless, 350, continued, primitives, equivalent, 351, why, preserved, clojurescript, supporting, customizations, probably, simpler, write, forked, slashes, smalltalkers, rejoice, computing, differences, knowing, ain, quite, enough, convenience, raw, literal, potentially, efficient, compilation, improving, spot, usual, please, upgrade, early, interpolation, represents, supported, yet, inversion, counting, turning, converting, ops, mapped, illustrator, photoshop, friends, due, minifier, incorrectly, optimizing, away, removing, involving, applying, naturally, pretty, wiser, ones, supplied, allowing, simply, implemented, tight, sampling, fits, alongside, cousins, miscellaneous, refactoring, throwing, wherever, creation, pull, conjunction, fail, registers, regular, ugliness, necessary, cleanup, aplenty, advanced, exposes, args, backticks, deal, base, too, few, needed, isn, aligning, forthcoming, ecma6, nullish, counterpart, lookups, across, ignores, officially, dead, diverse, simplifications, platform, deprecated, harmonious, generator, world, restored, flip, flopping, kissing, nicely, twin, twins, form, hopefully, breaks, apologize, crowd, pleaser, related, app, let, around, ios, improperly, jit, slimmed, years, configurable, management, discontinued, webworkers, browserify, negative, ranges, descending, specifiers, chunking, regressions, forms, citgm, jan, infinite, recursion, attempted, fall, unittest, states, verifies, lower, reformats, relative, web, legacy, stigmatizing, whitelist, blacklist, neutral, travis, inconsistency, anarray, reflecting, internal, structure, format, modern, who, interface, puts, move, brings, perfect, unlocks, possibility, overhead, obfuscates, piecewise, diffs, slims, former, glory, idential, bytelength, byteoffset, buffer, enhances, members, improves, older, viewing, segments, latter, interpretation, opt, renames, retained, experimental, process, mixed, shared, consumers, absent, point, party, affects, 23358, synchronizes, text, branch, theoretically, aware, tools, information, policy, main, stream, committed, website, mobile, friendly, ie8, scanning, reduced, carbon, footprint, webpack, federation, infrastructure, sub, tool, literally, prevent, situations, formats, plugin, resolve, hotfix, unexpectedly, broke, people, postinstall, infrastructural, building, dark, home, link, might, executing, environment, 2024, contributors, denial, dos, attack, applications, 27601, sensible, instance, occasionally, whether, respectively, maybe, treat, zeros, ensure, ideally, sorting, ordering, specifically, understand, meaningful, operands, actual, operand, converted, ends, relational, practical, inspired, funcy, extends, functools, pytoolz, michael, aufreiter, persistence, oliver, steele, lambdas, manner, sprintf, startswith, trim, coldfusion, cfc, aimed, hashes, tailored, tolerance, mind, stick, closer, encourages, dollar, suggested, reading, extracts, youngest, proxied, slip, modify, push, sleep, sleeps, computation, here, song, preference, lines, ways, jst, precompiling, big, reproduce, precompiled, provide, trace, something, compiling, precompilation, places, local, improve, erb, aren, cup, tea, off, verbatim, resulting, priority, combination, insert, design, means, trusted, authors, untrusted, injection, vulnerability, compiles, complicated, bits, templatestring, 1392066795351, fastest, runtime, timing, animation, meat, unescaped, counterparts, replacing, contact_, contact_104, globally, models, appended, overwrite, additional, predicates, else, generates, charat, substring, tolowercase, definitions, genie, grantwishnumber, irrespective, global, owner, missingvariable, int8array, typedarray, typeerror, inherits, finite, body, primitive, booleans, contained, selected, visible, readytogolist, spiders, accidentally, dotted, normalize, lodash, altering, unavoidably, unreachable, ensures, unmodified, alerted, 40000, intermediate, plain, vanilla, valid, shallowly, say, attaching, basically, descriptor, jazz, serializable, inherited, inner, metafunction, remember, fell, prizes, altogether, him, mainly, output, receives, beyond, collected, composition, consumes, follows, composing, negated, inside, adjust, conditionally, askforraise, subsequent, asyncsave, success, saved, nothing, starts, responses, sure, async, proceeding, createapplication, created, effect, initialization, calculatelayout, 300, resize, preventing, clicks, submit, firing, were, recently, postpone, elapsed, happen, arriving, markdown, comment, recalculating, layout, resized, updateposition, scroll, repeatedly, per, limiting, events, occur, keep, deferred, defers, cleared, blocking, thread, computed, speeding, slow, storing, close, left, supply, placeholders, hovering, underscore_button, binds, going, event, handlers, fairly, meaning, fill, ahem, loops, omitted, exclusive, incremented, decremented, bob, brown, frank, jones, maintain, ranking, look, partners, kindergarten, tyrone, elie, aidan, sam, katrina, billie, timmy, fewer, converts, series, position, coordinated, kept, advance, others, instances, flattened, greater, flattening, descend, deeper, hierarchy, omitting, deepest, onward, drop, everything, exclude, designed, isodd, slice, transmuting, produce, sorts, floor, splits, grouped, sin, stably, ascending, maximum, extracting, propertyname, extra, yes, odds, listofplays, cymbeline, tempest, publicservicepulitzers, 1918, public, publishing, official, reports, documents, speeches, european, statesmen, progress, conduct, war, evens, finds, acceptable, traverse, flat, concat, associative, language, lazy, evaluation, sum, boils, reduction, successive, four, mapping, good, broken, nodelist, yielding, outdated, enhance, retain, confirmation, safari, lts, firefox, chrome, fully, utilizing, newer, routinely, our, engines, exported, usage, mostly, customized, cjs, hardcoding, unsure, variant, add, installation, replace, above, embed, automatically, update, proven, breaking, urls, src, feeling, lucky, judgement, bountiful, plentiful, downloads, save, documentcloud, donating, enterprise, coverage, subscription, report, discuss, chat, channel, gitter, issues, hosted, enjoying, choose, summary, discussion, clickable, references, perusal, suite, favorite, workaday, specialized, goodies, whole, mess, programming, extending, question, sit, front, blank, productive, tie, along, tux, suspenders, backbone, collections, introduction, twitter,
Text of the page (random words):
ray of arrays returns a series of new arrays the first of which contains all of the first elements in the input arrays the second of which contains all of the second elements and so on if you re working with a matrix of nested arrays this can be used to transpose the matrix _ unzip moe 30 true larry 40 false curly 50 false moe larry curly 30 40 50 true false false object _ object list values source converts arrays into objects pass either a single list of key value pairs or a list of keys and a list of values passing by pairs is the reverse of pairs if duplicate keys exist the last value wins _ object moe larry curly 30 40 50 moe 30 larry 40 curly 50 _ object moe 30 larry 40 curly 50 moe 30 larry 40 curly 50 chunk _ chunk array length source chunks an array into multiple arrays each containing length or fewer items var partners _ chunk _ shuffle kindergarten 2 tyrone elie aidan sam katrina billie little timmy indexof _ indexof array value issorted source returns the index at which value can be found in the array or 1 if value is not present in the array if you re working with a large array and you know that the array is already sorted pass true for issorted to use a faster binary search or pass a number as the third argument in order to look for the first matching value in the array after the given index if issorted is true this function uses operator note _ indexof 1 2 3 2 1 lastindexof _ lastindexof array value fromindex source returns the index of the last occurrence of value in the array or 1 if value is not present pass fromindex to start your search at a given index _ lastindexof 1 2 3 1 2 3 2 4 sortedindex _ sortedindex array value iteratee context source uses a binary search to determine the smallest index at which the value should be inserted into the array in order to maintain the array s sorted order if an iteratee function is provided it will be used to compute the sort ranking of each value including the value you pass the iteratee may also be the string name of the property to sort by eg length this function uses operator note _ sortedindex 10 20 30 40 50 35 3 var stooges name moe age 40 name curly age 60 _ sortedindex stooges name larry age 50 age 1 findindex _ findindex array predicate context source similar to _ indexof returns the first index where the predicate truth test passes otherwise returns 1 _ findindex 4 6 8 12 isprime 1 not found _ findindex 4 6 7 12 isprime 2 findlastindex _ findlastindex array predicate context source like _ findindex but iterates the array in reverse returning the index closest to the end where the predicate truth test passes var users id 1 name bob last brown id 2 name ted last white id 3 name frank last james id 4 name ted last jones _ findlastindex users name ted 3 range _ range start stop step source a function to create flexibly numbered lists of integers handy for each and map loops start if omitted defaults to 0 step defaults to 1 if start is before stop otherwise 1 returns a list of integers from start inclusive to stop exclusive incremented or decremented by step _ range 10 0 1 2 3 4 5 6 7 8 9 _ range 1 11 1 2 3 4 5 6 7 8 9 10 _ range 0 30 5 0 5 10 15 20 25 _ range 0 10 1 0 1 2 3 4 5 6 7 8 9 _ range 0 function uh ahem functions bind _ bind function object arguments source bind a function to an object meaning that whenever the function is called the value of this will be the object optionally pass arguments to the function to pre fill them also known as partial application for partial application without context binding use partial var func function greeting return greeting this name func _ bind func name moe hi func hi moe bindall _ bindall object methodnames source binds a number of methods on the object specified by methodnames to be run in the context of that object whenever they are invoked very handy for binding functions that are going to be used as event handlers which would otherwise be invoked with a fairly useless this methodnames are required var buttonview label underscore onclick function alert clicked this label onhover function console log hovering this label _ bindall buttonview onclick onhover when the button is clicked this label will have the correct value jquery underscore_button on click buttonview onclick partial _ partial function arguments source partially apply a function by filling in any number of its arguments without changing its dynamic this value a close cousin of bind you may pass _ in your list of arguments to specify an argument that should not be pre filled but left open to supply at call time note if you need _ placeholders and a this binding at the same time use both _ partial and _ bind var subtract function a b return b a sub5 _ partial subtract 5 sub5 20 15 using a placeholder subfrom20 _ partial subtract _ 20 subfrom20 5 15 memoize _ memoize function hashfunction source memoizes a given function by caching the computed result useful for speeding up slow running computations if passed an optional hashfunction it will be used to compute the hash key for storing the result based on the arguments to the original function the default hashfunction just uses the first argument to the memoized function as the key the cache of memoized values is available as the cache property on the returned function var fibonacci _ memoize function n return n 2 n fibonacci n 1 fibonacci n 2 delay _ delay function wait arguments source much like settimeout invokes function after wait milliseconds if you pass the optional arguments they will be forwarded on to the function when it is invoked var log _ bind console log console _ delay log 1000 logged later logged later appears after one second defer _ defer function arguments source defers invoking the function until the current call stack has cleared similar to using settimeout with a delay of 0 useful for performing expensive computations or html rendering in chunks without blocking the ui thread from updating if you pass the optional arguments they will be forwarded on to the function when it is invoked _ defer function alert deferred returns from the function before the alert runs throttle _ throttle function wait options source creates and returns a new throttled version of the passed function that when invoked repeatedly will only actually call the original function at most once per every wait milliseconds useful for rate limiting events that occur faster than you can keep up with by default throttle will execute the function as soon as you call it for the first time and if you call it again any number of times during the wait period as soon as that period is over if you d like to disable the leading edge call pass leading false and if you d like to disable the execution on the trailing edge pass trailing false var throttled _ throttle updateposition 100 window scroll throttled if you need to cancel a scheduled throttle you can call cancel on the throttled function debounce _ debounce function wait immediate source creates and returns a new debounced version of the passed function which will postpone its execution until after wait milliseconds have elapsed since the last time it was invoked useful for implementing behavior that should only happen after the input has stopped arriving for example rendering a preview of a markdown comment recalculating a layout after the window has stopped being resized and so on at the end of the wait interval the function will be called with the arguments that were passed most recently to the debounced function pass true for the immediate argument to cause debounce to trigger the function on the leading instead of the trailing edge of the wait interval useful in circumstances like preventing accidental double clicks on a submit button from firing a second time var lazylayout _ debounce calculatelayout 300 window resize lazylayout if you need to cancel a scheduled debounce you can call cancel on the debounced function once _ once function source creates a version of the function that can only be called one time repeated calls to the modified function will have no effect returning the value from the original call useful for initialization functions instead of having to set a boolean flag and then check it later var initialize _ once createapplication initialize initialize application is only created once after _ after count function source creates a wrapper of function that does nothing at first from the count th call onwards it starts actually calling function useful for grouping asynchronous responses where you want to be sure that all the async calls have finished before proceeding var rendernotes _ after notes length render _ each notes function note note asyncsave success rendernotes rendernotes is run once after all notes have saved before _ before count function source creates a wrapper of function that memoizes its return value from the count th call onwards the memoized result of the last invocation is returned immediately instead of invoking function again so the wrapper will invoke function at most count 1 times var monthlymeeting _ before 3 askforraise monthlymeeting monthlymeeting monthlymeeting the result of any subsequent calls is the same as the second call wrap _ wrap function wrapper source wraps the first function inside of the wrapper function passing it as the first argument this allows the wrapper to execute code before and after the function runs adjust the arguments and execute it conditionally var hello function name return hello name hello _ wrap hello function func return before func moe after hello before hello moe after negate _ negate predicate source returns a new negated version of the predicate function var isfalsy _ negate boolean _ find 2 1 0 1 2 isfalsy 0 compose _ compose functions source returns the composition of a list of functions where each function consumes the return value of the function that follows in math terms composing the functions f g and h produces f g h var greet function name return hi name var exclaim function statement return statement touppercase var welcome _ compose greet exclaim welcome moe hi moe restarguments _ restarguments function startindex source returns a version of the function that when called receives all arguments from and beyond startindex collected into a single array if you don t pass an explicit startindex it will be determined by looking at the number of arguments to the function itself similar to es6 s rest parameters syntax var raceresults _ restarguments function gold silver bronze everyoneelse _ each everyoneelse sendconsolations raceresults dopey grumpy happy sneezy bashful sleepy doc sorry sneezy better next time sorry bashful better next time sorry sleepy better next time sorry doc better next time the startindex is mainly useful if the number of arguments cannot be reliably determined from the function itself for example because function was output by another function the inner function from before function consolenonwinners gold silver bronze everyoneelse _ each everyoneelse sendconsolations this time we transform it through another metafunction first snow white always wins gold var withsnowwhite _ partial consolenonwinners snow white withsnowwhite length is zero because _ partial does not remember the number of parameters for us we fix this by passing an explicit startindex var raceresults _ restarguments withsnowwhite 2 dopey degraded to silver grumpy degraded to bronze and happy fell out of the prizes altogether we will console him as well raceresults dopey grumpy happy sneezy bashful sleepy doc sorry happy better next time sorry sneezy better next time sorry bashful better next time sorry sleepy better next time sorry doc better next time object functions keys _ keys object source retrieve all the names of the object s own enumerable properties _ keys one 1 two 2 three 3 one two three allkeys _ allkeys object source retrieve all the names of object s own and inherited properties function stooge name this name name stooge prototype silly true _ allkeys new stooge moe name silly values _ values object source return all of the values of the object s own properties _ values one 1 two 2 three 3 1 2 3 mapobject _ mapobject object iteratee context source like map but for objects transform the value of each property in turn _ mapobject start 5 end 12 function val key return val 5 start 10 end 17 pairs _ pairs object source convert an object into a list of key value pairs the opposite of object _ pairs one 1 two 2 three 3 one 1 two 2 three 3 invert _ invert object source returns a copy of the object where the keys have become the values and the values the keys for this to work all of your object s values should be unique and string serializable _ invert moe moses larry louis curly jerome moses moe louis larry jerome curly create _ create prototype props source creates a new object with the given prototype optionally attaching props as own properties basically object create but without all of the property descriptor jazz var moe _ create stooge prototype name moe functions _ functions object alias methods source returns a sorted list of the names of every method in an object that is to say the name of every function property of the object _ functions _ all any bind bindall clone compact compose findkey _ findkey object predicate context source similar to _ findindex but for keys in objects returns the key where the predicate truth test passes or undefined predicate is transformed through iteratee to facilitate shorthand syntaxes extend _ extend destination sources source shallowly copy all of the properties in the source objects over to the destination object and return the destination object any nested objects or arrays will be copied by reference not duplicated it s in order so the last source will override properties of the same name in previous arguments _ extend name moe age 50 name moe age 50 extendown _ extendown destination sources alias assign source like extend but only copies own properties over to the destination object pick _ pick object keys source return a copy of the object filtered to only have values for the allowed keys or array of valid keys alternatively accepts a predicate indicating which keys to pick _ pick name moe age 50 userid moe1 name age name moe age 50 _ pick name moe age 50 userid moe1 function value key object return _ isnumber value age 50 omit _ omit object keys source return a copy of the object filtered to omit the disallowed keys or array of keys alternatively accepts a predicate indicating which keys to omit _ omit name moe age 50 userid moe1 userid name moe age 50 _ omit name moe age 50 userid moe1 function value key object return _ isnumber value name moe userid moe1 defaults _ defaults object defaults source returns object after filling in its undefined properties with the first value present in the following list of defaults objects var icecream flavor chocolate _ defaults icecream flavor vanilla sprinkles lots flavor chocolate sprin...
|