Module

x/lodash/doc/README.md

A modern JavaScript utility library delivering modularity, performance, & extras.
Extremely Popular
Latest
File
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338
# <a href="https://lodash.com/">lodash</a> <span>v4.17.19</span>
<!-- div class="toc-container" --><!-- div -->## `Array`* <a href="#_chunkarray-size1">`_.chunk`</a>* <a href="#_compactarray">`_.compact`</a>* <a href="#_concatarray-values">`_.concat`</a>* <a href="#_differencearray-values">`_.difference`</a>* <a href="#_differencebyarray-values-iteratee_identity">`_.differenceBy`</a>* <a href="#_differencewitharray-values-comparator">`_.differenceWith`</a>* <a href="#_droparray-n1">`_.drop`</a>* <a href="#_droprightarray-n1">`_.dropRight`</a>* <a href="#_droprightwhilearray-predicate_identity">`_.dropRightWhile`</a>* <a href="#_dropwhilearray-predicate_identity">`_.dropWhile`</a>* <a href="#_fillarray-value-start0-endarraylength">`_.fill`</a>* <a href="#_findindexarray-predicate_identity-fromindex0">`_.findIndex`</a>* <a href="#_findlastindexarray-predicate_identity-fromindexarraylength-1">`_.findLastIndex`</a>* <a href="#_headarray" class="alias">`_.first` -> `head`</a>* <a href="#_flattenarray">`_.flatten`</a>* <a href="#_flattendeeparray">`_.flattenDeep`</a>* <a href="#_flattendeptharray-depth1">`_.flattenDepth`</a>* <a href="#_frompairspairs">`_.fromPairs`</a>* <a href="#_headarray">`_.head`</a>* <a href="#_indexofarray-value-fromindex0">`_.indexOf`</a>* <a href="#_initialarray">`_.initial`</a>* <a href="#_intersectionarrays">`_.intersection`</a>* <a href="#_intersectionbyarrays-iteratee_identity">`_.intersectionBy`</a>* <a href="#_intersectionwitharrays-comparator">`_.intersectionWith`</a>* <a href="#_joinarray-separator-">`_.join`</a>* <a href="#_lastarray">`_.last`</a>* <a href="#_lastindexofarray-value-fromindexarraylength-1">`_.lastIndexOf`</a>* <a href="#_ntharray-n0">`_.nth`</a>* <a href="#_pullarray-values">`_.pull`</a>* <a href="#_pullallarray-values">`_.pullAll`</a>* <a href="#_pullallbyarray-values-iteratee_identity">`_.pullAllBy`</a>* <a href="#_pullallwitharray-values-comparator">`_.pullAllWith`</a>* <a href="#_pullatarray-indexes">`_.pullAt`</a>* <a href="#_removearray-predicate_identity">`_.remove`</a>* <a href="#_reversearray">`_.reverse`</a>* <a href="#_slicearray-start0-endarraylength">`_.slice`</a>* <a href="#_sortedindexarray-value">`_.sortedIndex`</a>* <a href="#_sortedindexbyarray-value-iteratee_identity">`_.sortedIndexBy`</a>* <a href="#_sortedindexofarray-value">`_.sortedIndexOf`</a>* <a href="#_sortedlastindexarray-value">`_.sortedLastIndex`</a>* <a href="#_sortedlastindexbyarray-value-iteratee_identity">`_.sortedLastIndexBy`</a>* <a href="#_sortedlastindexofarray-value">`_.sortedLastIndexOf`</a>* <a href="#_sorteduniqarray">`_.sortedUniq`</a>* <a href="#_sorteduniqbyarray-iteratee">`_.sortedUniqBy`</a>* <a href="#_tailarray">`_.tail`</a>* <a href="#_takearray-n1">`_.take`</a>* <a href="#_takerightarray-n1">`_.takeRight`</a>* <a href="#_takerightwhilearray-predicate_identity">`_.takeRightWhile`</a>* <a href="#_takewhilearray-predicate_identity">`_.takeWhile`</a>* <a href="#_unionarrays">`_.union`</a>* <a href="#_unionbyarrays-iteratee_identity">`_.unionBy`</a>* <a href="#_unionwitharrays-comparator">`_.unionWith`</a>* <a href="#_uniqarray">`_.uniq`</a>* <a href="#_uniqbyarray-iteratee_identity">`_.uniqBy`</a>* <a href="#_uniqwitharray-comparator">`_.uniqWith`</a>* <a href="#_unziparray">`_.unzip`</a>* <a href="#_unzipwitharray-iteratee_identity">`_.unzipWith`</a>* <a href="#_withoutarray-values">`_.without`</a>* <a href="#_xorarrays">`_.xor`</a>* <a href="#_xorbyarrays-iteratee_identity">`_.xorBy`</a>* <a href="#_xorwitharrays-comparator">`_.xorWith`</a>* <a href="#_ziparrays">`_.zip`</a>* <a href="#_zipobjectprops-values">`_.zipObject`</a>* <a href="#_zipobjectdeepprops-values">`_.zipObjectDeep`</a>* <a href="#_zipwitharrays-iteratee_identity">`_.zipWith`</a>
<!-- /div --><!-- div -->## `Collection`* <a href="#_countbycollection-iteratee_identity">`_.countBy`</a>* <a href="#_foreachcollection-iteratee_identity" class="alias">`_.each` -> `forEach`</a>* <a href="#_foreachrightcollection-iteratee_identity" class="alias">`_.eachRight` -> `forEachRight`</a>* <a href="#_everycollection-predicate_identity">`_.every`</a>* <a href="#_filtercollection-predicate_identity">`_.filter`</a>* <a href="#_findcollection-predicate_identity-fromindex0">`_.find`</a>* <a href="#_findlastcollection-predicate_identity-fromindexcollectionlength-1">`_.findLast`</a>* <a href="#_flatmapcollection-iteratee_identity">`_.flatMap`</a>* <a href="#_flatmapdeepcollection-iteratee_identity">`_.flatMapDeep`</a>* <a href="#_flatmapdepthcollection-iteratee_identity-depth1">`_.flatMapDepth`</a>* <a href="#_foreachcollection-iteratee_identity">`_.forEach`</a>* <a href="#_foreachrightcollection-iteratee_identity">`_.forEachRight`</a>* <a href="#_groupbycollection-iteratee_identity">`_.groupBy`</a>* <a href="#_includescollection-value-fromindex0">`_.includes`</a>* <a href="#_invokemapcollection-path-args">`_.invokeMap`</a>* <a href="#_keybycollection-iteratee_identity">`_.keyBy`</a>* <a href="#_mapcollection-iteratee_identity">`_.map`</a>* <a href="#_orderbycollection-iteratees_identity-orders">`_.orderBy`</a>* <a href="#_partitioncollection-predicate_identity">`_.partition`</a>* <a href="#_reducecollection-iteratee_identity-accumulator">`_.reduce`</a>* <a href="#_reducerightcollection-iteratee_identity-accumulator">`_.reduceRight`</a>* <a href="#_rejectcollection-predicate_identity">`_.reject`</a>* <a href="#_samplecollection">`_.sample`</a>* <a href="#_samplesizecollection-n1">`_.sampleSize`</a>* <a href="#_shufflecollection">`_.shuffle`</a>* <a href="#_sizecollection">`_.size`</a>* <a href="#_somecollection-predicate_identity">`_.some`</a>* <a href="#_sortbycollection-iteratees_identity">`_.sortBy`</a>
<!-- /div --><!-- div -->## `Date`* <a href="#_now">`_.now`</a>
<!-- /div --><!-- div -->## `Function`* <a href="#_aftern-func">`_.after`</a>* <a href="#_aryfunc-nfunclength">`_.ary`</a>* <a href="#_beforen-func">`_.before`</a>* <a href="#_bindfunc-thisarg-partials">`_.bind`</a>* <a href="#_bindkeyobject-key-partials">`_.bindKey`</a>* <a href="#_curryfunc-arityfunclength">`_.curry`</a>* <a href="#_curryrightfunc-arityfunclength">`_.curryRight`</a>* <a href="#_debouncefunc-wait0-options">`_.debounce`</a>* <a href="#_deferfunc-args">`_.defer`</a>* <a href="#_delayfunc-wait-args">`_.delay`</a>* <a href="#_flipfunc">`_.flip`</a>* <a href="#_memoizefunc-resolver">`_.memoize`</a>* <a href="#_negatepredicate">`_.negate`</a>* <a href="#_oncefunc">`_.once`</a>* <a href="#_overargsfunc-transforms_identity">`_.overArgs`</a>* <a href="#_partialfunc-partials">`_.partial`</a>* <a href="#_partialrightfunc-partials">`_.partialRight`</a>* <a href="#_reargfunc-indexes">`_.rearg`</a>* <a href="#_restfunc-startfunclength-1">`_.rest`</a>* <a href="#_spreadfunc-start0">`_.spread`</a>* <a href="#_throttlefunc-wait0-options">`_.throttle`</a>* <a href="#_unaryfunc">`_.unary`</a>* <a href="#_wrapvalue-wrapperidentity">`_.wrap`</a>
<!-- /div --><!-- div -->## `Lang`* <a href="#_castarrayvalue">`_.castArray`</a>* <a href="#_clonevalue">`_.clone`</a>* <a href="#_clonedeepvalue">`_.cloneDeep`</a>* <a href="#_clonedeepwithvalue-customizer">`_.cloneDeepWith`</a>* <a href="#_clonewithvalue-customizer">`_.cloneWith`</a>* <a href="#_conformstoobject-source">`_.conformsTo`</a>* <a href="#_eqvalue-other">`_.eq`</a>* <a href="#_gtvalue-other">`_.gt`</a>* <a href="#_gtevalue-other">`_.gte`</a>* <a href="#_isargumentsvalue">`_.isArguments`</a>* <a href="#_isarrayvalue">`_.isArray`</a>* <a href="#_isarraybuffervalue">`_.isArrayBuffer`</a>* <a href="#_isarraylikevalue">`_.isArrayLike`</a>* <a href="#_isarraylikeobjectvalue">`_.isArrayLikeObject`</a>* <a href="#_isbooleanvalue">`_.isBoolean`</a>* <a href="#_isbuffervalue">`_.isBuffer`</a>* <a href="#_isdatevalue">`_.isDate`</a>* <a href="#_iselementvalue">`_.isElement`</a>* <a href="#_isemptyvalue">`_.isEmpty`</a>* <a href="#_isequalvalue-other">`_.isEqual`</a>* <a href="#_isequalwithvalue-other-customizer">`_.isEqualWith`</a>* <a href="#_iserrorvalue">`_.isError`</a>* <a href="#_isfinitevalue">`_.isFinite`</a>* <a href="#_isfunctionvalue">`_.isFunction`</a>* <a href="#_isintegervalue">`_.isInteger`</a>* <a href="#_islengthvalue">`_.isLength`</a>* <a href="#_ismapvalue">`_.isMap`</a>* <a href="#_ismatchobject-source">`_.isMatch`</a>* <a href="#_ismatchwithobject-source-customizer">`_.isMatchWith`</a>* <a href="#_isnanvalue">`_.isNaN`</a>* <a href="#_isnativevalue">`_.isNative`</a>* <a href="#_isnilvalue">`_.isNil`</a>* <a href="#_isnullvalue">`_.isNull`</a>* <a href="#_isnumbervalue">`_.isNumber`</a>* <a href="#_isobjectvalue">`_.isObject`</a>* <a href="#_isobjectlikevalue">`_.isObjectLike`</a>* <a href="#_isplainobjectvalue">`_.isPlainObject`</a>* <a href="#_isregexpvalue">`_.isRegExp`</a>* <a href="#_issafeintegervalue">`_.isSafeInteger`</a>* <a href="#_issetvalue">`_.isSet`</a>* <a href="#_isstringvalue">`_.isString`</a>* <a href="#_issymbolvalue">`_.isSymbol`</a>* <a href="#_istypedarrayvalue">`_.isTypedArray`</a>* <a href="#_isundefinedvalue">`_.isUndefined`</a>* <a href="#_isweakmapvalue">`_.isWeakMap`</a>* <a href="#_isweaksetvalue">`_.isWeakSet`</a>* <a href="#_ltvalue-other">`_.lt`</a>* <a href="#_ltevalue-other">`_.lte`</a>* <a href="#_toarrayvalue">`_.toArray`</a>* <a href="#_tofinitevalue">`_.toFinite`</a>* <a href="#_tointegervalue">`_.toInteger`</a>* <a href="#_tolengthvalue">`_.toLength`</a>* <a href="#_tonumbervalue">`_.toNumber`</a>* <a href="#_toplainobjectvalue">`_.toPlainObject`</a>* <a href="#_tosafeintegervalue">`_.toSafeInteger`</a>* <a href="#_tostringvalue">`_.toString`</a>
<!-- /div --><!-- div -->## `Math`* <a href="#_addaugend-addend">`_.add`</a>* <a href="#_ceilnumber-precision0">`_.ceil`</a>* <a href="#_dividedividend-divisor">`_.divide`</a>* <a href="#_floornumber-precision0">`_.floor`</a>* <a href="#_maxarray">`_.max`</a>* <a href="#_maxbyarray-iteratee_identity">`_.maxBy`</a>* <a href="#_meanarray">`_.mean`</a>* <a href="#_meanbyarray-iteratee_identity">`_.meanBy`</a>* <a href="#_minarray">`_.min`</a>* <a href="#_minbyarray-iteratee_identity">`_.minBy`</a>* <a href="#_multiplymultiplier-multiplicand">`_.multiply`</a>* <a href="#_roundnumber-precision0">`_.round`</a>* <a href="#_subtractminuend-subtrahend">`_.subtract`</a>* <a href="#_sumarray">`_.sum`</a>* <a href="#_sumbyarray-iteratee_identity">`_.sumBy`</a>
<!-- /div --><!-- div -->## `Number`* <a href="#_clampnumber-lower-upper">`_.clamp`</a>* <a href="#_inrangenumber-start0-end">`_.inRange`</a>* <a href="#_randomlower0-upper1-floating">`_.random`</a>
<!-- /div --><!-- div -->## `Object`* <a href="#_assignobject-sources">`_.assign`</a>* <a href="#_assigninobject-sources">`_.assignIn`</a>* <a href="#_assigninwithobject-sources-customizer">`_.assignInWith`</a>* <a href="#_assignwithobject-sources-customizer">`_.assignWith`</a>* <a href="#_atobject-paths">`_.at`</a>* <a href="#_createprototype-properties">`_.create`</a>* <a href="#_defaultsobject-sources">`_.defaults`</a>* <a href="#_defaultsdeepobject-sources">`_.defaultsDeep`</a>* <a href="#_topairsobject" class="alias">`_.entries` -> `toPairs`</a>* <a href="#_topairsinobject" class="alias">`_.entriesIn` -> `toPairsIn`</a>* <a href="#_assigninobject-sources" class="alias">`_.extend` -> `assignIn`</a>* <a href="#_assigninwithobject-sources-customizer" class="alias">`_.extendWith` -> `assignInWith`</a>* <a href="#_findkeyobject-predicate_identity">`_.findKey`</a>* <a href="#_findlastkeyobject-predicate_identity">`_.findLastKey`</a>* <a href="#_forinobject-iteratee_identity">`_.forIn`</a>* <a href="#_forinrightobject-iteratee_identity">`_.forInRight`</a>* <a href="#_forownobject-iteratee_identity">`_.forOwn`</a>* <a href="#_forownrightobject-iteratee_identity">`_.forOwnRight`</a>* <a href="#_functionsobject">`_.functions`</a>* <a href="#_functionsinobject">`_.functionsIn`</a>* <a href="#_getobject-path-defaultvalue">`_.get`</a>* <a href="#_hasobject-path">`_.has`</a>* <a href="#_hasinobject-path">`_.hasIn`</a>* <a href="#_invertobject">`_.invert`</a>* <a href="#_invertbyobject-iteratee_identity">`_.invertBy`</a>* <a href="#_invokeobject-path-args">`_.invoke`</a>* <a href="#_keysobject">`_.keys`</a>* <a href="#_keysinobject">`_.keysIn`</a>* <a href="#_mapkeysobject-iteratee_identity">`_.mapKeys`</a>* <a href="#_mapvaluesobject-iteratee_identity">`_.mapValues`</a>* <a href="#_mergeobject-sources">`_.merge`</a>* <a href="#_mergewithobject-sources-customizer">`_.mergeWith`</a>* <a href="#_omitobject-paths">`_.omit`</a>* <a href="#_omitbyobject-predicate_identity">`_.omitBy`</a>* <a href="#_pickobject-paths">`_.pick`</a>* <a href="#_pickbyobject-predicate_identity">`_.pickBy`</a>* <a href="#_resultobject-path-defaultvalue">`_.result`</a>* <a href="#_setobject-path-value">`_.set`</a>* <a href="#_setwithobject-path-value-customizer">`_.setWith`</a>* <a href="#_topairsobject">`_.toPairs`</a>* <a href="#_topairsinobject">`_.toPairsIn`</a>* <a href="#_transformobject-iteratee_identity-accumulator">`_.transform`</a>* <a href="#_unsetobject-path">`_.unset`</a>* <a href="#_updateobject-path-updater">`_.update`</a>* <a href="#_updatewithobject-path-updater-customizer">`_.updateWith`</a>* <a href="#_valuesobject">`_.values`</a>* <a href="#_valuesinobject">`_.valuesIn`</a>
<!-- /div --><!-- div -->## `Seq`* <a href="#_value">`_`</a>* <a href="#_chainvalue">`_.chain`</a>* <a href="#_tapvalue-interceptor">`_.tap`</a>* <a href="#_thruvalue-interceptor">`_.thru`</a>* <a href="#_prototypesymboliterator">`_.prototype[Symbol.iterator]`</a>* <a href="#_prototypeatpaths">`_.prototype.at`</a>* <a href="#_prototypechain">`_.prototype.chain`</a>* <a href="#_prototypecommit">`_.prototype.commit`</a>* <a href="#_prototypenext">`_.prototype.next`</a>* <a href="#_prototypeplantvalue">`_.prototype.plant`</a>* <a href="#_prototypereverse">`_.prototype.reverse`</a>* <a href="#_prototypevalue" class="alias">`_.prototype.toJSON` -> `value`</a>* <a href="#_prototypevalue">`_.prototype.value`</a>* <a href="#_prototypevalue" class="alias">`_.prototype.valueOf` -> `value`</a>
<!-- /div --><!-- div -->## `String`* <a href="#_camelcasestring">`_.camelCase`</a>* <a href="#_capitalizestring">`_.capitalize`</a>* <a href="#_deburrstring">`_.deburr`</a>* <a href="#_endswithstring-target-positionstringlength">`_.endsWith`</a>* <a href="#_escapestring">`_.escape`</a>* <a href="#_escaperegexpstring">`_.escapeRegExp`</a>* <a href="#_kebabcasestring">`_.kebabCase`</a>* <a href="#_lowercasestring">`_.lowerCase`</a>* <a href="#_lowerfirststring">`_.lowerFirst`</a>* <a href="#_padstring-length0-chars">`_.pad`</a>* <a href="#_padendstring-length0-chars">`_.padEnd`</a>* <a href="#_padstartstring-length0-chars">`_.padStart`</a>* <a href="#_parseintstring-radix10">`_.parseInt`</a>* <a href="#_repeatstring-n1">`_.repeat`</a>* <a href="#_replacestring-pattern-replacement">`_.replace`</a>* <a href="#_snakecasestring">`_.snakeCase`</a>* <a href="#_splitstring-separator-limit">`_.split`</a>* <a href="#_startcasestring">`_.startCase`</a>* <a href="#_startswithstring-target-position0">`_.startsWith`</a>* <a href="#_templatestring-options">`_.template`</a>* <a href="#_tolowerstring">`_.toLower`</a>* <a href="#_toupperstring">`_.toUpper`</a>* <a href="#_trimstring-charswhitespace">`_.trim`</a>* <a href="#_trimendstring-charswhitespace">`_.trimEnd`</a>* <a href="#_trimstartstring-charswhitespace">`_.trimStart`</a>* <a href="#_truncatestring-options">`_.truncate`</a>* <a href="#_unescapestring">`_.unescape`</a>* <a href="#_uppercasestring">`_.upperCase`</a>* <a href="#_upperfirststring">`_.upperFirst`</a>* <a href="#_wordsstring-pattern">`_.words`</a>
<!-- /div --><!-- div -->## `Util`* <a href="#_attemptfunc-args">`_.attempt`</a>* <a href="#_bindallobject-methodnames">`_.bindAll`</a>* <a href="#_condpairs">`_.cond`</a>* <a href="#_conformssource">`_.conforms`</a>* <a href="#_constantvalue">`_.constant`</a>* <a href="#_defaulttovalue-defaultvalue">`_.defaultTo`</a>* <a href="#_flowfuncs">`_.flow`</a>* <a href="#_flowrightfuncs">`_.flowRight`</a>* <a href="#_identityvalue">`_.identity`</a>* <a href="#_iterateefunc_identity">`_.iteratee`</a>* <a href="#_matchessource">`_.matches`</a>* <a href="#_matchespropertypath-srcvalue">`_.matchesProperty`</a>* <a href="#_methodpath-args">`_.method`</a>* <a href="#_methodofobject-args">`_.methodOf`</a>* <a href="#_mixinobjectlodash-source-options">`_.mixin`</a>* <a href="#_noconflict">`_.noConflict`</a>* <a href="#_noop">`_.noop`</a>* <a href="#_nthargn0">`_.nthArg`</a>* <a href="#_overiteratees_identity">`_.over`</a>* <a href="#_overeverypredicates_identity">`_.overEvery`</a>* <a href="#_oversomepredicates_identity">`_.overSome`</a>* <a href="#_propertypath">`_.property`</a>* <a href="#_propertyofobject">`_.propertyOf`</a>* <a href="#_rangestart0-end-step1">`_.range`</a>* <a href="#_rangerightstart0-end-step1">`_.rangeRight`</a>* <a href="#_runincontextcontextroot">`_.runInContext`</a>* <a href="#_stubarray">`_.stubArray`</a>* <a href="#_stubfalse">`_.stubFalse`</a>* <a href="#_stubobject">`_.stubObject`</a>* <a href="#_stubstring">`_.stubString`</a>* <a href="#_stubtrue">`_.stubTrue`</a>* <a href="#_timesn-iteratee_identity">`_.times`</a>* <a href="#_topathvalue">`_.toPath`</a>* <a href="#_uniqueidprefix">`_.uniqueId`</a>
<!-- /div --><!-- div -->## `Properties`* <a href="#_version">`_.VERSION`</a>* <a href="#_templatesettings">`_.templateSettings`</a>* <a href="#_templatesettingsescape">`_.templateSettings.escape`</a>* <a href="#_templatesettingsevaluate">`_.templateSettings.evaluate`</a>* <a href="#_templatesettingsimports">`_.templateSettings.imports`</a>* <a href="#_templatesettingsinterpolate">`_.templateSettings.interpolate`</a>* <a href="#_templatesettingsvariable">`_.templateSettings.variable`</a>
<!-- /div --><!-- div -->## `Methods`* <a href="#_templatesettingsimports_">`_.templateSettings.imports._`</a>
<!-- /div --><!-- /div --><!-- div class="doc-container" --><!-- div -->## `“Array” Methods`
<!-- div --><h3 id="_chunkarray-size1"><code>_.chunk(array, [size=1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L6861 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.chunk "See the npm package") [&#x24C9;][1]
Creates an array of elements split into groups the length of `size`.If `array` can't be split evenly, the final chunk will be the remainingelements.
#### Since3.0.0
#### Arguments1. `array` *(Array)*: The array to process.2. `[size=1]` *(number)*: The length of each chunk
#### Returns*(Array)*: Returns the new array of chunks.
#### Example```js_.chunk(['a', 'b', 'c', 'd'], 2);// => [['a', 'b'], ['c', 'd']]
_.chunk(['a', 'b', 'c', 'd'], 3);// => [['a', 'b', 'c'], ['d']]```---
<!-- /div --><!-- div --><h3 id="_compactarray"><code>_.compact(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L6896 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.compact "See the npm package") [&#x24C9;][1]
Creates an array with all falsey values removed. The values `false`, `null`,`0`, `""`, `undefined`, and `NaN` are falsey.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to compact.
#### Returns*(Array)*: Returns the new array of filtered values.
#### Example```js_.compact([0, 1, false, 2, '', 3]);// => [1, 2, 3]```---
<!-- /div --><!-- div --><h3 id="_concatarray-values"><code>_.concat(array, [values])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L6933 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.concat "See the npm package") [&#x24C9;][1]
Creates a new array concatenating `array` with any additional arraysand/or values.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to concatenate.2. `[values]` *(...&#42;)*: The values to concatenate.
#### Returns*(Array)*: Returns the new concatenated array.
#### Example```jsvar array = [1];var other = _.concat(array, 2, [3], [[4]]);
console.log(other);// => [1, 2, 3, [4]]
console.log(array);// => [1]```---
<!-- /div --><!-- div --><h3 id="_differencearray-values"><code>_.difference(array, [values])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L6969 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.difference "See the npm package") [&#x24C9;][1]
Creates an array of `array` values not included in the other given arraysusing [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)for equality comparisons. The order and references of result values aredetermined by the first array.<br><br>**Note:** Unlike `_.pullAll`, this method returns a new array.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `[values]` *(...Array)*: The values to exclude.
#### Returns*(Array)*: Returns the new array of filtered values.
#### Example```js_.difference([2, 1], [2, 3]);// => [1]```---
<!-- /div --><!-- div --><h3 id="_differencebyarray-values-iteratee_identity"><code>_.differenceBy(array, [values], [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7001 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.differenceby "See the npm package") [&#x24C9;][1]
This method is like `_.difference` except that it accepts `iteratee` whichis invoked for each element of `array` and `values` to generate the criterionby which they're compared. The order and references of result values aredetermined by the first array. The iteratee is invoked with one argument:<br>*(value)*.<br><br>**Note:** Unlike `_.pullAllBy`, this method returns a new array.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `[values]` *(...Array)*: The values to exclude.3. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(Array)*: Returns the new array of filtered values.
#### Example```js_.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);// => [1.2]
// The `_.property` iteratee shorthand._.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');// => [{ 'x': 2 }]```---
<!-- /div --><!-- div --><h3 id="_differencewitharray-values-comparator"><code>_.differenceWith(array, [values], [comparator])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7034 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.differencewith "See the npm package") [&#x24C9;][1]
This method is like `_.difference` except that it accepts `comparator`which is invoked to compare elements of `array` to `values`. The order andreferences of result values are determined by the first array. The comparatoris invoked with two arguments: *(arrVal, othVal)*.<br><br>**Note:** Unlike `_.pullAllWith`, this method returns a new array.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `[values]` *(...Array)*: The values to exclude.3. `[comparator]` *(Function)*: The comparator invoked per element.
#### Returns*(Array)*: Returns the new array of filtered values.
#### Example```jsvar objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
_.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);// => [{ 'x': 2, 'y': 1 }]```---
<!-- /div --><!-- div --><h3 id="_droparray-n1"><code>_.drop(array, [n=1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7069 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.drop "See the npm package") [&#x24C9;][1]
Creates a slice of `array` with `n` elements dropped from the beginning.
#### Since0.5.0
#### Arguments1. `array` *(Array)*: The array to query.2. `[n=1]` *(number)*: The number of elements to drop.
#### Returns*(Array)*: Returns the slice of `array`.
#### Example```js_.drop([1, 2, 3]);// => [2, 3]
_.drop([1, 2, 3], 2);// => [3]
_.drop([1, 2, 3], 5);// => []
_.drop([1, 2, 3], 0);// => [1, 2, 3]```---
<!-- /div --><!-- div --><h3 id="_droprightarray-n1"><code>_.dropRight(array, [n=1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7103 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.dropright "See the npm package") [&#x24C9;][1]
Creates a slice of `array` with `n` elements dropped from the end.
#### Since3.0.0
#### Arguments1. `array` *(Array)*: The array to query.2. `[n=1]` *(number)*: The number of elements to drop.
#### Returns*(Array)*: Returns the slice of `array`.
#### Example```js_.dropRight([1, 2, 3]);// => [1, 2]
_.dropRight([1, 2, 3], 2);// => [1]
_.dropRight([1, 2, 3], 5);// => []
_.dropRight([1, 2, 3], 0);// => [1, 2, 3]```---
<!-- /div --><!-- div --><h3 id="_droprightwhilearray-predicate_identity"><code>_.dropRightWhile(array, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7148 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.droprightwhile "See the npm package") [&#x24C9;][1]
Creates a slice of `array` excluding elements dropped from the end.Elements are dropped until `predicate` returns falsey. The predicate isinvoked with three arguments: *(value, index, array)*.
#### Since3.0.0
#### Arguments1. `array` *(Array)*: The array to query.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the slice of `array`.
#### Example```jsvar users = [ { 'user': 'barney', 'active': true }, { 'user': 'fred', 'active': false }, { 'user': 'pebbles', 'active': false }];
_.dropRightWhile(users, function(o) { return !o.active; });// => objects for ['barney']
// The `_.matches` iteratee shorthand._.dropRightWhile(users, { 'user': 'pebbles', 'active': false });// => objects for ['barney', 'fred']
// The `_.matchesProperty` iteratee shorthand._.dropRightWhile(users, ['active', false]);// => objects for ['barney']
// The `_.property` iteratee shorthand._.dropRightWhile(users, 'active');// => objects for ['barney', 'fred', 'pebbles']```---
<!-- /div --><!-- div --><h3 id="_dropwhilearray-predicate_identity"><code>_.dropWhile(array, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7189 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.dropwhile "See the npm package") [&#x24C9;][1]
Creates a slice of `array` excluding elements dropped from the beginning.Elements are dropped until `predicate` returns falsey. The predicate isinvoked with three arguments: *(value, index, array)*.
#### Since3.0.0
#### Arguments1. `array` *(Array)*: The array to query.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the slice of `array`.
#### Example```jsvar users = [ { 'user': 'barney', 'active': false }, { 'user': 'fred', 'active': false }, { 'user': 'pebbles', 'active': true }];
_.dropWhile(users, function(o) { return !o.active; });// => objects for ['pebbles']
// The `_.matches` iteratee shorthand._.dropWhile(users, { 'user': 'barney', 'active': false });// => objects for ['fred', 'pebbles']
// The `_.matchesProperty` iteratee shorthand._.dropWhile(users, ['active', false]);// => objects for ['pebbles']
// The `_.property` iteratee shorthand._.dropWhile(users, 'active');// => objects for ['barney', 'fred', 'pebbles']```---
<!-- /div --><!-- div --><h3 id="_fillarray-value-start0-endarraylength"><code>_.fill(array, value, [start=0], [end=array.length])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7224 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.fill "See the npm package") [&#x24C9;][1]
Fills elements of `array` with `value` from `start` up to, but notincluding, `end`.<br><br>**Note:** This method mutates `array`.
#### Since3.2.0
#### Arguments1. `array` *(Array)*: The array to fill.2. `value` *(&#42;)*: The value to fill `array` with.3. `[start=0]` *(number)*: The start position.4. `[end=array.length]` *(number)*: The end position.
#### Returns*(Array)*: Returns `array`.
#### Example```jsvar array = [1, 2, 3];
_.fill(array, 'a');console.log(array);// => ['a', 'a', 'a']
_.fill(Array(3), 2);// => [2, 2, 2]
_.fill([4, 6, 8, 10], '*', 1, 3);// => [4, '*', '*', 10]```---
<!-- /div --><!-- div --><h3 id="_findindexarray-predicate_identity-fromindex0"><code>_.findIndex(array, [predicate=_.identity], [fromIndex=0])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7271 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.findindex "See the npm package") [&#x24C9;][1]
This method is like `_.find` except that it returns the index of the firstelement `predicate` returns truthy for instead of the element itself.
#### Since1.1.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.3. `[fromIndex=0]` *(number)*: The index to search from.
#### Returns*(number)*: Returns the index of the found element, else `-1`.
#### Example```jsvar users = [ { 'user': 'barney', 'active': false }, { 'user': 'fred', 'active': false }, { 'user': 'pebbles', 'active': true }];
_.findIndex(users, function(o) { return o.user == 'barney'; });// => 0
// The `_.matches` iteratee shorthand._.findIndex(users, { 'user': 'fred', 'active': false });// => 1
// The `_.matchesProperty` iteratee shorthand._.findIndex(users, ['active', false]);// => 0
// The `_.property` iteratee shorthand._.findIndex(users, 'active');// => 2```---
<!-- /div --><!-- div --><h3 id="_findlastindexarray-predicate_identity-fromindexarraylength-1"><code>_.findLastIndex(array, [predicate=_.identity], [fromIndex=array.length-1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7318 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.findlastindex "See the npm package") [&#x24C9;][1]
This method is like `_.findIndex` except that it iterates over elementsof `collection` from right to left.
#### Since2.0.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.3. `[fromIndex=array.length-1]` *(number)*: The index to search from.
#### Returns*(number)*: Returns the index of the found element, else `-1`.
#### Example```jsvar users = [ { 'user': 'barney', 'active': true }, { 'user': 'fred', 'active': false }, { 'user': 'pebbles', 'active': false }];
_.findLastIndex(users, function(o) { return o.user == 'pebbles'; });// => 2
// The `_.matches` iteratee shorthand._.findLastIndex(users, { 'user': 'barney', 'active': true });// => 0
// The `_.matchesProperty` iteratee shorthand._.findLastIndex(users, ['active', false]);// => 2
// The `_.property` iteratee shorthand._.findLastIndex(users, 'active');// => 0```---
<!-- /div --><!-- div --><h3 id="_flattenarray"><code>_.flatten(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7347 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.flatten "See the npm package") [&#x24C9;][1]
Flattens `array` a single level deep.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to flatten.
#### Returns*(Array)*: Returns the new flattened array.
#### Example```js_.flatten([1, [2, [3, [4]], 5]]);// => [1, 2, [3, [4]], 5]```---
<!-- /div --><!-- div --><h3 id="_flattendeeparray"><code>_.flattenDeep(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7366 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.flattendeep "See the npm package") [&#x24C9;][1]
Recursively flattens `array`.
#### Since3.0.0
#### Arguments1. `array` *(Array)*: The array to flatten.
#### Returns*(Array)*: Returns the new flattened array.
#### Example```js_.flattenDeep([1, [2, [3, [4]], 5]]);// => [1, 2, 3, 4, 5]```---
<!-- /div --><!-- div --><h3 id="_flattendeptharray-depth1"><code>_.flattenDepth(array, [depth=1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7391 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.flattendepth "See the npm package") [&#x24C9;][1]
Recursively flatten `array` up to `depth` times.
#### Since4.4.0
#### Arguments1. `array` *(Array)*: The array to flatten.2. `[depth=1]` *(number)*: The maximum recursion depth.
#### Returns*(Array)*: Returns the new flattened array.
#### Example```jsvar array = [1, [2, [3, [4]], 5]];
_.flattenDepth(array, 1);// => [1, 2, [3, [4]], 5]
_.flattenDepth(array, 2);// => [1, 2, 3, [4], 5]```---
<!-- /div --><!-- div --><h3 id="_frompairspairs"><code>_.fromPairs(pairs)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7415 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.frompairs "See the npm package") [&#x24C9;][1]
The inverse of `_.toPairs`; this method returns an object composedfrom key-value `pairs`.
#### Since4.0.0
#### Arguments1. `pairs` *(Array)*: The key-value pairs.
#### Returns*(Object)*: Returns the new object.
#### Example```js_.fromPairs([['a', 1], ['b', 2]]);// => { 'a': 1, 'b': 2 }```---
<!-- /div --><!-- div --><h3 id="_headarray"><code>_.head(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7445 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.head "See the npm package") [&#x24C9;][1]
Gets the first element of `array`.
#### Since0.1.0
#### Aliases*_.first*
#### Arguments1. `array` *(Array)*: The array to query.
#### Returns*(&#42;)*: Returns the first element of `array`.
#### Example```js_.head([1, 2, 3]);// => 1
_.head([]);// => undefined```---
<!-- /div --><!-- div --><h3 id="_indexofarray-value-fromindex0"><code>_.indexOf(array, value, [fromIndex=0])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7472 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.indexof "See the npm package") [&#x24C9;][1]
Gets the index at which the first occurrence of `value` is found in `array`using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)for equality comparisons. If `fromIndex` is negative, it's used as theoffset from the end of `array`.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `value` *(&#42;)*: The value to search for.3. `[fromIndex=0]` *(number)*: The index to search from.
#### Returns*(number)*: Returns the index of the matched value, else `-1`.
#### Example```js_.indexOf([1, 2, 1, 2], 2);// => 1
// Search from the `fromIndex`._.indexOf([1, 2, 1, 2], 2, 2);// => 3```---
<!-- /div --><!-- div --><h3 id="_initialarray"><code>_.initial(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7498 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.initial "See the npm package") [&#x24C9;][1]
Gets all but the last element of `array`.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to query.
#### Returns*(Array)*: Returns the slice of `array`.
#### Example```js_.initial([1, 2, 3]);// => [1, 2]```---
<!-- /div --><!-- div --><h3 id="_intersectionarrays"><code>_.intersection([arrays])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7520 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.intersection "See the npm package") [&#x24C9;][1]
Creates an array of unique values that are included in all given arraysusing [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)for equality comparisons. The order and references of result values aredetermined by the first array.
#### Since0.1.0
#### Arguments1. `[arrays]` *(...Array)*: The arrays to inspect.
#### Returns*(Array)*: Returns the new array of intersecting values.
#### Example```js_.intersection([2, 1], [2, 3]);// => [2]```---
<!-- /div --><!-- div --><h3 id="_intersectionbyarrays-iteratee_identity"><code>_.intersectionBy([arrays], [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7550 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.intersectionby "See the npm package") [&#x24C9;][1]
This method is like `_.intersection` except that it accepts `iteratee`which is invoked for each element of each `arrays` to generate the criterionby which they're compared. The order and references of result values aredetermined by the first array. The iteratee is invoked with one argument:<br>*(value)*.
#### Since4.0.0
#### Arguments1. `[arrays]` *(...Array)*: The arrays to inspect.2. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(Array)*: Returns the new array of intersecting values.
#### Example```js_.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);// => [2.1]
// The `_.property` iteratee shorthand._.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');// => [{ 'x': 1 }]```---
<!-- /div --><!-- div --><h3 id="_intersectionwitharrays-comparator"><code>_.intersectionWith([arrays], [comparator])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7585 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.intersectionwith "See the npm package") [&#x24C9;][1]
This method is like `_.intersection` except that it accepts `comparator`which is invoked to compare elements of `arrays`. The order and referencesof result values are determined by the first array. The comparator isinvoked with two arguments: *(arrVal, othVal)*.
#### Since4.0.0
#### Arguments1. `[arrays]` *(...Array)*: The arrays to inspect.2. `[comparator]` *(Function)*: The comparator invoked per element.
#### Returns*(Array)*: Returns the new array of intersecting values.
#### Example```jsvar objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
_.intersectionWith(objects, others, _.isEqual);// => [{ 'x': 1, 'y': 2 }]```---
<!-- /div --><!-- div --><h3 id="_joinarray-separator-"><code>_.join(array, [separator=','])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7613 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.join "See the npm package") [&#x24C9;][1]
Converts all elements in `array` into a string separated by `separator`.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to convert.2. `[separator=',']` *(string)*: The element separator.
#### Returns*(string)*: Returns the joined string.
#### Example```js_.join(['a', 'b', 'c'], '~');// => 'a~b~c'```---
<!-- /div --><!-- div --><h3 id="_lastarray"><code>_.last(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7631 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.last "See the npm package") [&#x24C9;][1]
Gets the last element of `array`.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to query.
#### Returns*(&#42;)*: Returns the last element of `array`.
#### Example```js_.last([1, 2, 3]);// => 3```---
<!-- /div --><!-- div --><h3 id="_lastindexofarray-value-fromindexarraylength-1"><code>_.lastIndexOf(array, value, [fromIndex=array.length-1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7657 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.lastindexof "See the npm package") [&#x24C9;][1]
This method is like `_.indexOf` except that it iterates over elements of`array` from right to left.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `value` *(&#42;)*: The value to search for.3. `[fromIndex=array.length-1]` *(number)*: The index to search from.
#### Returns*(number)*: Returns the index of the matched value, else `-1`.
#### Example```js_.lastIndexOf([1, 2, 1, 2], 2);// => 3
// Search from the `fromIndex`._.lastIndexOf([1, 2, 1, 2], 2, 2);// => 1```---
<!-- /div --><!-- div --><h3 id="_ntharray-n0"><code>_.nth(array, [n=0])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7693 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.nth "See the npm package") [&#x24C9;][1]
Gets the element at index `n` of `array`. If `n` is negative, the nthelement from the end is returned.
#### Since4.11.0
#### Arguments1. `array` *(Array)*: The array to query.2. `[n=0]` *(number)*: The index of the element to return.
#### Returns*(&#42;)*: Returns the nth element of `array`.
#### Example```jsvar array = ['a', 'b', 'c', 'd'];
_.nth(array, 1);// => 'b'
_.nth(array, -2);// => 'c';```---
<!-- /div --><!-- div --><h3 id="_pullarray-values"><code>_.pull(array, [values])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7720 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.pull "See the npm package") [&#x24C9;][1]
Removes all given values from `array` using[`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)for equality comparisons.<br><br>**Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`to remove elements from an array by predicate.
#### Since2.0.0
#### Arguments1. `array` *(Array)*: The array to modify.2. `[values]` *(...&#42;)*: The values to remove.
#### Returns*(Array)*: Returns `array`.
#### Example```jsvar array = ['a', 'b', 'c', 'a', 'b', 'c'];
_.pull(array, 'a', 'c');console.log(array);// => ['b', 'b']```---
<!-- /div --><!-- div --><h3 id="_pullallarray-values"><code>_.pullAll(array, values)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7742 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.pullall "See the npm package") [&#x24C9;][1]
This method is like `_.pull` except that it accepts an array of values to remove.<br><br>**Note:** Unlike `_.difference`, this method mutates `array`.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to modify.2. `values` *(Array)*: The values to remove.
#### Returns*(Array)*: Returns `array`.
#### Example```jsvar array = ['a', 'b', 'c', 'a', 'b', 'c'];
_.pullAll(array, ['a', 'c']);console.log(array);// => ['b', 'b']```---
<!-- /div --><!-- div --><h3 id="_pullallbyarray-values-iteratee_identity"><code>_.pullAllBy(array, values, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7771 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.pullallby "See the npm package") [&#x24C9;][1]
This method is like `_.pullAll` except that it accepts `iteratee` which isinvoked for each element of `array` and `values` to generate the criterionby which they're compared. The iteratee is invoked with one argument: *(value)*.<br><br>**Note:** Unlike `_.differenceBy`, this method mutates `array`.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to modify.2. `values` *(Array)*: The values to remove.3. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(Array)*: Returns `array`.
#### Example```jsvar array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
_.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');console.log(array);// => [{ 'x': 2 }]```---
<!-- /div --><!-- div --><h3 id="_pullallwitharray-values-comparator"><code>_.pullAllWith(array, values, [comparator])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7800 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.pullallwith "See the npm package") [&#x24C9;][1]
This method is like `_.pullAll` except that it accepts `comparator` whichis invoked to compare elements of `array` to `values`. The comparator isinvoked with two arguments: *(arrVal, othVal)*.<br><br>**Note:** Unlike `_.differenceWith`, this method mutates `array`.
#### Since4.6.0
#### Arguments1. `array` *(Array)*: The array to modify.2. `values` *(Array)*: The values to remove.3. `[comparator]` *(Function)*: The comparator invoked per element.
#### Returns*(Array)*: Returns `array`.
#### Example```jsvar array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
_.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);console.log(array);// => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]```---
<!-- /div --><!-- div --><h3 id="_pullatarray-indexes"><code>_.pullAt(array, [indexes])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7830 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.pullat "See the npm package") [&#x24C9;][1]
Removes elements from `array` corresponding to `indexes` and returns anarray of removed elements.<br><br>**Note:** Unlike `_.at`, this method mutates `array`.
#### Since3.0.0
#### Arguments1. `array` *(Array)*: The array to modify.2. `[indexes]` *(...(number|number&#91;&#93;))*: The indexes of elements to remove.
#### Returns*(Array)*: Returns the new array of removed elements.
#### Example```jsvar array = ['a', 'b', 'c', 'd'];var pulled = _.pullAt(array, [1, 3]);
console.log(array);// => ['a', 'c']
console.log(pulled);// => ['b', 'd']```---
<!-- /div --><!-- div --><h3 id="_removearray-predicate_identity"><code>_.remove(array, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7869 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.remove "See the npm package") [&#x24C9;][1]
Removes all elements from `array` that `predicate` returns truthy forand returns an array of the removed elements. The predicate is invokedwith three arguments: *(value, index, array)*.<br><br>**Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`to pull elements from an array by value.
#### Since2.0.0
#### Arguments1. `array` *(Array)*: The array to modify.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the new array of removed elements.
#### Example```jsvar array = [1, 2, 3, 4];var evens = _.remove(array, function(n) { return n % 2 == 0;});
console.log(array);// => [1, 3]
console.log(evens);// => [2, 4]```---
<!-- /div --><!-- div --><h3 id="_reversearray"><code>_.reverse(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7913 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.reverse "See the npm package") [&#x24C9;][1]
Reverses `array` so that the first element becomes the last, the secondelement becomes the second to last, and so on.<br><br>**Note:** This method mutates `array` and is based on[`Array#reverse`](https://mdn.io/Array/reverse).
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to modify.
#### Returns*(Array)*: Returns `array`.
#### Example```jsvar array = [1, 2, 3];
_.reverse(array);// => [3, 2, 1]
console.log(array);// => [3, 2, 1]```---
<!-- /div --><!-- div --><h3 id="_slicearray-start0-endarraylength"><code>_.slice(array, [start=0], [end=array.length])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7933 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.slice "See the npm package") [&#x24C9;][1]
Creates a slice of `array` from `start` up to, but not including, `end`.<br><br>**Note:** This method is used instead of[`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays arereturned.
#### Since3.0.0
#### Arguments1. `array` *(Array)*: The array to slice.2. `[start=0]` *(number)*: The start position.3. `[end=array.length]` *(number)*: The end position.
#### Returns*(Array)*: Returns the slice of `array`.
---
<!-- /div --><!-- div --><h3 id="_sortedindexarray-value"><code>_.sortedIndex(array, value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7966 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sortedindex "See the npm package") [&#x24C9;][1]
Uses a binary search to determine the lowest index at which `value`should be inserted into `array` in order to maintain its sort order.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The sorted array to inspect.2. `value` *(&#42;)*: The value to evaluate.
#### Returns*(number)*: Returns the index at which `value` should be inserted into `array`.
#### Example```js_.sortedIndex([30, 50], 40);// => 1```---
<!-- /div --><!-- div --><h3 id="_sortedindexbyarray-value-iteratee_identity"><code>_.sortedIndexBy(array, value, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L7995 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sortedindexby "See the npm package") [&#x24C9;][1]
This method is like `_.sortedIndex` except that it accepts `iteratee`which is invoked for `value` and each element of `array` to compute theirsort ranking. The iteratee is invoked with one argument: *(value)*.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The sorted array to inspect.2. `value` *(&#42;)*: The value to evaluate.3. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(number)*: Returns the index at which `value` should be inserted into `array`.
#### Example```jsvar objects = [{ 'x': 4 }, { 'x': 5 }];
_.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });// => 0
// The `_.property` iteratee shorthand._.sortedIndexBy(objects, { 'x': 4 }, 'x');// => 0```---
<!-- /div --><!-- div --><h3 id="_sortedindexofarray-value"><code>_.sortedIndexOf(array, value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8015 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sortedindexof "See the npm package") [&#x24C9;][1]
This method is like `_.indexOf` except that it performs a binarysearch on a sorted `array`.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `value` *(&#42;)*: The value to search for.
#### Returns*(number)*: Returns the index of the matched value, else `-1`.
#### Example```js_.sortedIndexOf([4, 5, 5, 5, 6], 5);// => 1```---
<!-- /div --><!-- div --><h3 id="_sortedlastindexarray-value"><code>_.sortedLastIndex(array, value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8044 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sortedlastindex "See the npm package") [&#x24C9;][1]
This method is like `_.sortedIndex` except that it returns the highestindex at which `value` should be inserted into `array` in order tomaintain its sort order.
#### Since3.0.0
#### Arguments1. `array` *(Array)*: The sorted array to inspect.2. `value` *(&#42;)*: The value to evaluate.
#### Returns*(number)*: Returns the index at which `value` should be inserted into `array`.
#### Example```js_.sortedLastIndex([4, 5, 5, 5, 6], 5);// => 4```---
<!-- /div --><!-- div --><h3 id="_sortedlastindexbyarray-value-iteratee_identity"><code>_.sortedLastIndexBy(array, value, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8073 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sortedlastindexby "See the npm package") [&#x24C9;][1]
This method is like `_.sortedLastIndex` except that it accepts `iteratee`which is invoked for `value` and each element of `array` to compute theirsort ranking. The iteratee is invoked with one argument: *(value)*.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The sorted array to inspect.2. `value` *(&#42;)*: The value to evaluate.3. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(number)*: Returns the index at which `value` should be inserted into `array`.
#### Example```jsvar objects = [{ 'x': 4 }, { 'x': 5 }];
_.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });// => 1
// The `_.property` iteratee shorthand._.sortedLastIndexBy(objects, { 'x': 4 }, 'x');// => 1```---
<!-- /div --><!-- div --><h3 id="_sortedlastindexofarray-value"><code>_.sortedLastIndexOf(array, value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8093 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sortedlastindexof "See the npm package") [&#x24C9;][1]
This method is like `_.lastIndexOf` except that it performs a binarysearch on a sorted `array`.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `value` *(&#42;)*: The value to search for.
#### Returns*(number)*: Returns the index of the matched value, else `-1`.
#### Example```js_.sortedLastIndexOf([4, 5, 5, 5, 6], 5);// => 3```---
<!-- /div --><!-- div --><h3 id="_sorteduniqarray"><code>_.sortedUniq(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8119 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sorteduniq "See the npm package") [&#x24C9;][1]
This method is like `_.uniq` except that it's designed and optimizedfor sorted arrays.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to inspect.
#### Returns*(Array)*: Returns the new duplicate free array.
#### Example```js_.sortedUniq([1, 1, 2]);// => [1, 2]```---
<!-- /div --><!-- div --><h3 id="_sorteduniqbyarray-iteratee"><code>_.sortedUniqBy(array, [iteratee])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8141 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sorteduniqby "See the npm package") [&#x24C9;][1]
This method is like `_.uniqBy` except that it's designed and optimizedfor sorted arrays.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `[iteratee]` *(Function)*: The iteratee invoked per element.
#### Returns*(Array)*: Returns the new duplicate free array.
#### Example```js_.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);// => [1.1, 2.3]```---
<!-- /div --><!-- div --><h3 id="_tailarray"><code>_.tail(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8161 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.tail "See the npm package") [&#x24C9;][1]
Gets all but the first element of `array`.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to query.
#### Returns*(Array)*: Returns the slice of `array`.
#### Example```js_.tail([1, 2, 3]);// => [2, 3]```---
<!-- /div --><!-- div --><h3 id="_takearray-n1"><code>_.take(array, [n=1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8191 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.take "See the npm package") [&#x24C9;][1]
Creates a slice of `array` with `n` elements taken from the beginning.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to query.2. `[n=1]` *(number)*: The number of elements to take.
#### Returns*(Array)*: Returns the slice of `array`.
#### Example```js_.take([1, 2, 3]);// => [1]
_.take([1, 2, 3], 2);// => [1, 2]
_.take([1, 2, 3], 5);// => [1, 2, 3]
_.take([1, 2, 3], 0);// => []```---
<!-- /div --><!-- div --><h3 id="_takerightarray-n1"><code>_.takeRight(array, [n=1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8224 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.takeright "See the npm package") [&#x24C9;][1]
Creates a slice of `array` with `n` elements taken from the end.
#### Since3.0.0
#### Arguments1. `array` *(Array)*: The array to query.2. `[n=1]` *(number)*: The number of elements to take.
#### Returns*(Array)*: Returns the slice of `array`.
#### Example```js_.takeRight([1, 2, 3]);// => [3]
_.takeRight([1, 2, 3], 2);// => [2, 3]
_.takeRight([1, 2, 3], 5);// => [1, 2, 3]
_.takeRight([1, 2, 3], 0);// => []```---
<!-- /div --><!-- div --><h3 id="_takerightwhilearray-predicate_identity"><code>_.takeRightWhile(array, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8269 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.takerightwhile "See the npm package") [&#x24C9;][1]
Creates a slice of `array` with elements taken from the end. Elements aretaken until `predicate` returns falsey. The predicate is invoked withthree arguments: *(value, index, array)*.
#### Since3.0.0
#### Arguments1. `array` *(Array)*: The array to query.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the slice of `array`.
#### Example```jsvar users = [ { 'user': 'barney', 'active': true }, { 'user': 'fred', 'active': false }, { 'user': 'pebbles', 'active': false }];
_.takeRightWhile(users, function(o) { return !o.active; });// => objects for ['fred', 'pebbles']
// The `_.matches` iteratee shorthand._.takeRightWhile(users, { 'user': 'pebbles', 'active': false });// => objects for ['pebbles']
// The `_.matchesProperty` iteratee shorthand._.takeRightWhile(users, ['active', false]);// => objects for ['fred', 'pebbles']
// The `_.property` iteratee shorthand._.takeRightWhile(users, 'active');// => []```---
<!-- /div --><!-- div --><h3 id="_takewhilearray-predicate_identity"><code>_.takeWhile(array, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8310 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.takewhile "See the npm package") [&#x24C9;][1]
Creates a slice of `array` with elements taken from the beginning. Elementsare taken until `predicate` returns falsey. The predicate is invoked withthree arguments: *(value, index, array)*.
#### Since3.0.0
#### Arguments1. `array` *(Array)*: The array to query.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the slice of `array`.
#### Example```jsvar users = [ { 'user': 'barney', 'active': false }, { 'user': 'fred', 'active': false }, { 'user': 'pebbles', 'active': true }];
_.takeWhile(users, function(o) { return !o.active; });// => objects for ['barney', 'fred']
// The `_.matches` iteratee shorthand._.takeWhile(users, { 'user': 'barney', 'active': false });// => objects for ['barney']
// The `_.matchesProperty` iteratee shorthand._.takeWhile(users, ['active', false]);// => objects for ['barney', 'fred']
// The `_.property` iteratee shorthand._.takeWhile(users, 'active');// => []```---
<!-- /div --><!-- div --><h3 id="_unionarrays"><code>_.union([arrays])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8332 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.union "See the npm package") [&#x24C9;][1]
Creates an array of unique values, in order, from all given arrays using[`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)for equality comparisons.
#### Since0.1.0
#### Arguments1. `[arrays]` *(...Array)*: The arrays to inspect.
#### Returns*(Array)*: Returns the new array of combined values.
#### Example```js_.union([2], [1, 2]);// => [2, 1]```---
<!-- /div --><!-- div --><h3 id="_unionbyarrays-iteratee_identity"><code>_.unionBy([arrays], [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8359 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.unionby "See the npm package") [&#x24C9;][1]
This method is like `_.union` except that it accepts `iteratee` which isinvoked for each element of each `arrays` to generate the criterion bywhich uniqueness is computed. Result values are chosen from the firstarray in which the value occurs. The iteratee is invoked with one argument:<br>*(value)*.
#### Since4.0.0
#### Arguments1. `[arrays]` *(...Array)*: The arrays to inspect.2. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(Array)*: Returns the new array of combined values.
#### Example```js_.unionBy([2.1], [1.2, 2.3], Math.floor);// => [2.1, 1.2]
// The `_.property` iteratee shorthand._.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');// => [{ 'x': 1 }, { 'x': 2 }]```---
<!-- /div --><!-- div --><h3 id="_unionwitharrays-comparator"><code>_.unionWith([arrays], [comparator])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8388 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.unionwith "See the npm package") [&#x24C9;][1]
This method is like `_.union` except that it accepts `comparator` whichis invoked to compare elements of `arrays`. Result values are chosen fromthe first array in which the value occurs. The comparator is invokedwith two arguments: *(arrVal, othVal)*.
#### Since4.0.0
#### Arguments1. `[arrays]` *(...Array)*: The arrays to inspect.2. `[comparator]` *(Function)*: The comparator invoked per element.
#### Returns*(Array)*: Returns the new array of combined values.
#### Example```jsvar objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
_.unionWith(objects, others, _.isEqual);// => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]```---
<!-- /div --><!-- div --><h3 id="_uniqarray"><code>_.uniq(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8412 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.uniq "See the npm package") [&#x24C9;][1]
Creates a duplicate-free version of an array, using[`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)for equality comparisons, in which only the first occurrence of each elementis kept. The order of result values is determined by the order they occurin the array.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to inspect.
#### Returns*(Array)*: Returns the new duplicate free array.
#### Example```js_.uniq([2, 1, 2]);// => [2, 1]```---
<!-- /div --><!-- div --><h3 id="_uniqbyarray-iteratee_identity"><code>_.uniqBy(array, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8439 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.uniqby "See the npm package") [&#x24C9;][1]
This method is like `_.uniq` except that it accepts `iteratee` which isinvoked for each element in `array` to generate the criterion by whichuniqueness is computed. The order of result values is determined by theorder they occur in the array. The iteratee is invoked with one argument:<br>*(value)*.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(Array)*: Returns the new duplicate free array.
#### Example```js_.uniqBy([2.1, 1.2, 2.3], Math.floor);// => [2.1, 1.2]
// The `_.property` iteratee shorthand._.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');// => [{ 'x': 1 }, { 'x': 2 }]```---
<!-- /div --><!-- div --><h3 id="_uniqwitharray-comparator"><code>_.uniqWith(array, [comparator])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8463 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.uniqwith "See the npm package") [&#x24C9;][1]
This method is like `_.uniq` except that it accepts `comparator` whichis invoked to compare elements of `array`. The order of result values isdetermined by the order they occur in the array.The comparator is invokedwith two arguments: *(arrVal, othVal)*.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `[comparator]` *(Function)*: The comparator invoked per element.
#### Returns*(Array)*: Returns the new duplicate free array.
#### Example```jsvar objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
_.uniqWith(objects, _.isEqual);// => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]```---
<!-- /div --><!-- div --><h3 id="_unziparray"><code>_.unzip(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8487 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.unzip "See the npm package") [&#x24C9;][1]
This method is like `_.zip` except that it accepts an array of groupedelements and creates an array regrouping the elements to their pre-zipconfiguration.
#### Since1.2.0
#### Arguments1. `array` *(Array)*: The array of grouped elements to process.
#### Returns*(Array)*: Returns the new array of regrouped elements.
#### Example```jsvar zipped = _.zip(['a', 'b'], [1, 2], [true, false]);// => [['a', 1, true], ['b', 2, false]]
_.unzip(zipped);// => [['a', 'b'], [1, 2], [true, false]]```---
<!-- /div --><!-- div --><h3 id="_unzipwitharray-iteratee_identity"><code>_.unzipWith(array, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8524 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.unzipwith "See the npm package") [&#x24C9;][1]
This method is like `_.unzip` except that it accepts `iteratee` to specifyhow regrouped values should be combined. The iteratee is invoked with theelements of each group: *(...group)*.
#### Since3.8.0
#### Arguments1. `array` *(Array)*: The array of grouped elements to process.2. `[iteratee=_.identity]` *(Function)*: The function to combine regrouped values.
#### Returns*(Array)*: Returns the new array of regrouped elements.
#### Example```jsvar zipped = _.zip([1, 2], [10, 20], [100, 200]);// => [[1, 10, 100], [2, 20, 200]]
_.unzipWith(zipped, _.add);// => [3, 30, 300]```---
<!-- /div --><!-- div --><h3 id="_withoutarray-values"><code>_.without(array, [values])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8557 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.without "See the npm package") [&#x24C9;][1]
Creates an array excluding all given values using[`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)for equality comparisons.<br><br>**Note:** Unlike `_.pull`, this method returns a new array.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to inspect.2. `[values]` *(...&#42;)*: The values to exclude.
#### Returns*(Array)*: Returns the new array of filtered values.
#### Example```js_.without([2, 1, 2, 3], 1, 2);// => [3]```---
<!-- /div --><!-- div --><h3 id="_xorarrays"><code>_.xor([arrays])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8581 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.xor "See the npm package") [&#x24C9;][1]
Creates an array of unique values that is the[symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)of the given arrays. The order of result values is determined by the orderthey occur in the arrays.
#### Since2.4.0
#### Arguments1. `[arrays]` *(...Array)*: The arrays to inspect.
#### Returns*(Array)*: Returns the new array of filtered values.
#### Example```js_.xor([2, 1], [2, 3]);// => [1, 3]```---
<!-- /div --><!-- div --><h3 id="_xorbyarrays-iteratee_identity"><code>_.xorBy([arrays], [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8608 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.xorby "See the npm package") [&#x24C9;][1]
This method is like `_.xor` except that it accepts `iteratee` which isinvoked for each element of each `arrays` to generate the criterion bywhich by which they're compared. The order of result values is determinedby the order they occur in the arrays. The iteratee is invoked with oneargument: *(value)*.
#### Since4.0.0
#### Arguments1. `[arrays]` *(...Array)*: The arrays to inspect.2. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(Array)*: Returns the new array of filtered values.
#### Example```js_.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);// => [1.2, 3.4]
// The `_.property` iteratee shorthand._.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');// => [{ 'x': 2 }]```---
<!-- /div --><!-- div --><h3 id="_xorwitharrays-comparator"><code>_.xorWith([arrays], [comparator])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8637 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.xorwith "See the npm package") [&#x24C9;][1]
This method is like `_.xor` except that it accepts `comparator` which isinvoked to compare elements of `arrays`. The order of result values isdetermined by the order they occur in the arrays. The comparator is invokedwith two arguments: *(arrVal, othVal)*.
#### Since4.0.0
#### Arguments1. `[arrays]` *(...Array)*: The arrays to inspect.2. `[comparator]` *(Function)*: The comparator invoked per element.
#### Returns*(Array)*: Returns the new array of filtered values.
#### Example```jsvar objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
_.xorWith(objects, others, _.isEqual);// => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]```---
<!-- /div --><!-- div --><h3 id="_ziparrays"><code>_.zip([arrays])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8659 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.zip "See the npm package") [&#x24C9;][1]
Creates an array of grouped elements, the first of which contains thefirst elements of the given arrays, the second of which contains thesecond elements of the given arrays, and so on.
#### Since0.1.0
#### Arguments1. `[arrays]` *(...Array)*: The arrays to process.
#### Returns*(Array)*: Returns the new array of grouped elements.
#### Example```js_.zip(['a', 'b'], [1, 2], [true, false]);// => [['a', 1, true], ['b', 2, false]]```---
<!-- /div --><!-- div --><h3 id="_zipobjectprops-values"><code>_.zipObject([props=[]], [values=[]])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8677 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.zipobject "See the npm package") [&#x24C9;][1]
This method is like `_.fromPairs` except that it accepts two arrays,one of property identifiers and one of corresponding values.
#### Since0.4.0
#### Arguments1. `[props=[]]` *(Array)*: The property identifiers.2. `[values=[]]` *(Array)*: The property values.
#### Returns*(Object)*: Returns the new object.
#### Example```js_.zipObject(['a', 'b'], [1, 2]);// => { 'a': 1, 'b': 2 }```---
<!-- /div --><!-- div --><h3 id="_zipobjectdeepprops-values"><code>_.zipObjectDeep([props=[]], [values=[]])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8696 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.zipobjectdeep "See the npm package") [&#x24C9;][1]
This method is like `_.zipObject` except that it supports property paths.
#### Since4.1.0
#### Arguments1. `[props=[]]` *(Array)*: The property identifiers.2. `[values=[]]` *(Array)*: The property values.
#### Returns*(Object)*: Returns the new object.
#### Example```js_.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);// => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }```---
<!-- /div --><!-- div --><h3 id="_zipwitharrays-iteratee_identity"><code>_.zipWith([arrays], [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8720 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.zipwith "See the npm package") [&#x24C9;][1]
This method is like `_.zip` except that it accepts `iteratee` to specifyhow grouped values should be combined. The iteratee is invoked with theelements of each group: *(...group)*.
#### Since3.8.0
#### Arguments1. `[arrays]` *(...Array)*: The arrays to process.2. `[iteratee=_.identity]` *(Function)*: The function to combine grouped values.
#### Returns*(Array)*: Returns the new array of grouped elements.
#### Example```js_.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) { return a + b + c;});// => [111, 222]```---
<!-- /div --><!-- /div --><!-- div -->## `“Collection” Methods`
<!-- div --><h3 id="_countbycollection-iteratee_identity"><code>_.countBy(collection, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9099 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.countby "See the npm package") [&#x24C9;][1]
Creates an object composed of keys generated from the results of runningeach element of `collection` thru `iteratee`. The corresponding value ofeach key is the number of times the key was returned by `iteratee`. Theiteratee is invoked with one argument: *(value)*.
#### Since0.5.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratee=_.identity]` *(Function)*: The iteratee to transform keys.
#### Returns*(Object)*: Returns the composed aggregate object.
#### Example```js_.countBy([6.1, 4.2, 6.3], Math.floor);// => { '4': 1, '6': 2 }
// The `_.property` iteratee shorthand._.countBy(['one', 'two', 'three'], 'length');// => { '3': 2, '5': 1 }```---
<!-- /div --><!-- div --><h3 id="_everycollection-predicate_identity"><code>_.every(collection, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9148 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.every "See the npm package") [&#x24C9;][1]
Checks if `predicate` returns truthy for **all** elements of `collection`.Iteration is stopped once `predicate` returns falsey. The predicate isinvoked with three arguments: *(value, index|key, collection)*.<br><br>**Note:** This method returns `true` for[empty collections](https://en.wikipedia.org/wiki/Empty_set) because[everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) ofelements of empty collections.
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(boolean)*: Returns `true` if all elements pass the predicate check, else `false`.
#### Example```js_.every([true, 1, null, 'yes'], Boolean);// => false
var users = [ { 'user': 'barney', 'age': 36, 'active': false }, { 'user': 'fred', 'age': 40, 'active': false }];
// The `_.matches` iteratee shorthand._.every(users, { 'user': 'barney', 'active': false });// => false
// The `_.matchesProperty` iteratee shorthand._.every(users, ['active', false]);// => true
// The `_.property` iteratee shorthand._.every(users, 'active');// => false```---
<!-- /div --><!-- div --><h3 id="_filtercollection-predicate_identity"><code>_.filter(collection, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9197 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.filter "See the npm package") [&#x24C9;][1]
Iterates over elements of `collection`, returning an array of all elements`predicate` returns truthy for. The predicate is invoked with threearguments: *(value, index|key, collection)*.<br><br>**Note:** Unlike `_.remove`, this method returns a new array.
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the new filtered array.
#### Example```jsvar users = [ { 'user': 'barney', 'age': 36, 'active': true }, { 'user': 'fred', 'age': 40, 'active': false }];
_.filter(users, function(o) { return !o.active; });// => objects for ['fred']
// The `_.matches` iteratee shorthand._.filter(users, { 'age': 36, 'active': true });// => objects for ['barney']
// The `_.matchesProperty` iteratee shorthand._.filter(users, ['active', false]);// => objects for ['fred']
// The `_.property` iteratee shorthand._.filter(users, 'active');// => objects for ['barney']
// Combining several predicates using `_.overEvery` or `_.overSome`._.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));// => objects for ['fred', 'barney']```---
<!-- /div --><!-- div --><h3 id="_findcollection-predicate_identity-fromindex0"><code>_.find(collection, [predicate=_.identity], [fromIndex=0])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9238 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.find "See the npm package") [&#x24C9;][1]
Iterates over elements of `collection`, returning the first element`predicate` returns truthy for. The predicate is invoked with threearguments: *(value, index|key, collection)*.
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object)*: The collection to inspect.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.3. `[fromIndex=0]` *(number)*: The index to search from.
#### Returns*(&#42;)*: Returns the matched element, else `undefined`.
#### Example```jsvar users = [ { 'user': 'barney', 'age': 36, 'active': true }, { 'user': 'fred', 'age': 40, 'active': false }, { 'user': 'pebbles', 'age': 1, 'active': true }];
_.find(users, function(o) { return o.age < 40; });// => object for 'barney'
// The `_.matches` iteratee shorthand._.find(users, { 'age': 1, 'active': true });// => object for 'pebbles'
// The `_.matchesProperty` iteratee shorthand._.find(users, ['active', false]);// => object for 'fred'
// The `_.property` iteratee shorthand._.find(users, 'active');// => object for 'barney'```---
<!-- /div --><!-- div --><h3 id="_findlastcollection-predicate_identity-fromindexcollectionlength-1"><code>_.findLast(collection, [predicate=_.identity], [fromIndex=collection.length-1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9259 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.findlast "See the npm package") [&#x24C9;][1]
This method is like `_.find` except that it iterates over elements of`collection` from right to left.
#### Since2.0.0
#### Arguments1. `collection` *(Array|Object)*: The collection to inspect.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.3. `[fromIndex=collection.length-1]` *(number)*: The index to search from.
#### Returns*(&#42;)*: Returns the matched element, else `undefined`.
#### Example```js_.findLast([1, 2, 3, 4], function(n) { return n % 2 == 1;});// => 3```---
<!-- /div --><!-- div --><h3 id="_flatmapcollection-iteratee_identity"><code>_.flatMap(collection, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9282 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.flatmap "See the npm package") [&#x24C9;][1]
Creates a flattened array of values by running each element in `collection`thru `iteratee` and flattening the mapped results. The iteratee is invokedwith three arguments: *(value, index|key, collection)*.
#### Since4.0.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the new flattened array.
#### Example```jsfunction duplicate(n) { return [n, n];}
_.flatMap([1, 2], duplicate);// => [1, 1, 2, 2]```---
<!-- /div --><!-- div --><h3 id="_flatmapdeepcollection-iteratee_identity"><code>_.flatMapDeep(collection, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9306 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.flatmapdeep "See the npm package") [&#x24C9;][1]
This method is like `_.flatMap` except that it recursively flattens themapped results.
#### Since4.7.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the new flattened array.
#### Example```jsfunction duplicate(n) { return [[[n, n]]];}
_.flatMapDeep([1, 2], duplicate);// => [1, 1, 2, 2]```---
<!-- /div --><!-- div --><h3 id="_flatmapdepthcollection-iteratee_identity-depth1"><code>_.flatMapDepth(collection, [iteratee=_.identity], [depth=1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9331 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.flatmapdepth "See the npm package") [&#x24C9;][1]
This method is like `_.flatMap` except that it recursively flattens themapped results up to `depth` times.
#### Since4.7.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.3. `[depth=1]` *(number)*: The maximum recursion depth.
#### Returns*(Array)*: Returns the new flattened array.
#### Example```jsfunction duplicate(n) { return [[[n, n]]];}
_.flatMapDepth([1, 2], duplicate, 2);// => [[1, 1], [2, 2]]```---
<!-- /div --><!-- div --><h3 id="_foreachcollection-iteratee_identity"><code>_.forEach(collection, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9366 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.foreach "See the npm package") [&#x24C9;][1]
Iterates over elements of `collection` and invokes `iteratee` for each element.The iteratee is invoked with three arguments: *(value, index|key, collection)*.Iteratee functions may exit iteration early by explicitly returning `false`.<br><br>**Note:** As with other "Collections" methods, objects with a "length"property are iterated like arrays. To avoid this behavior use `_.forIn`or `_.forOwn` for object iteration.
#### Since0.1.0
#### Aliases*_.each*
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(&#42;)*: Returns `collection`.
#### Example```js_.forEach([1, 2], function(value) { console.log(value);});// => Logs `1` then `2`.
_.forEach({ 'a': 1, 'b': 2 }, function(value, key) { console.log(key);});// => Logs 'a' then 'b' (iteration order is not guaranteed).```---
<!-- /div --><!-- div --><h3 id="_foreachrightcollection-iteratee_identity"><code>_.forEachRight(collection, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9391 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.foreachright "See the npm package") [&#x24C9;][1]
This method is like `_.forEach` except that it iterates over elements of`collection` from right to left.
#### Since2.0.0
#### Aliases*_.eachRight*
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(&#42;)*: Returns `collection`.
#### Example```js_.forEachRight([1, 2], function(value) { console.log(value);});// => Logs `2` then `1`.```---
<!-- /div --><!-- div --><h3 id="_groupbycollection-iteratee_identity"><code>_.groupBy(collection, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9419 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.groupby "See the npm package") [&#x24C9;][1]
Creates an object composed of keys generated from the results of runningeach element of `collection` thru `iteratee`. The order of grouped valuesis determined by the order they occur in `collection`. The correspondingvalue of each key is an array of elements responsible for generating thekey. The iteratee is invoked with one argument: *(value)*.
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratee=_.identity]` *(Function)*: The iteratee to transform keys.
#### Returns*(Object)*: Returns the composed aggregate object.
#### Example```js_.groupBy([6.1, 4.2, 6.3], Math.floor);// => { '4': [4.2], '6': [6.1, 6.3] }
// The `_.property` iteratee shorthand._.groupBy(['one', 'two', 'three'], 'length');// => { '3': ['one', 'two'], '5': ['three'] }```---
<!-- /div --><!-- div --><h3 id="_includescollection-value-fromindex0"><code>_.includes(collection, value, [fromIndex=0])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9457 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.includes "See the npm package") [&#x24C9;][1]
Checks if `value` is in `collection`. If `collection` is a string, it'schecked for a substring of `value`, otherwise[`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)is used for equality comparisons. If `fromIndex` is negative, it's used asthe offset from the end of `collection`.
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object|string)*: The collection to inspect.2. `value` *(&#42;)*: The value to search for.3. `[fromIndex=0]` *(number)*: The index to search from.
#### Returns*(boolean)*: Returns `true` if `value` is found, else `false`.
#### Example```js_.includes([1, 2, 3], 1);// => true
_.includes([1, 2, 3], 1, 2);// => false
_.includes({ 'a': 1, 'b': 2 }, 1);// => true
_.includes('abcd', 'bc');// => true```---
<!-- /div --><!-- div --><h3 id="_invokemapcollection-path-args"><code>_.invokeMap(collection, path, [args])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9493 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.invokemap "See the npm package") [&#x24C9;][1]
Invokes the method at `path` of each element in `collection`, returningan array of the results of each invoked method. Any additional argumentsare provided to each invoked method. If `path` is a function, it's invokedfor, and `this` bound to, each element in `collection`.
#### Since4.0.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `path` *(Array|Function|string)*: The path of the method to invoke or the function invoked per iteration.3. `[args]` *(...&#42;)*: The arguments to invoke each method with.
#### Returns*(Array)*: Returns the array of results.
#### Example```js_.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');// => [[1, 5, 7], [1, 2, 3]]
_.invokeMap([123, 456], String.prototype.split, '');// => [['1', '2', '3'], ['4', '5', '6']]```---
<!-- /div --><!-- div --><h3 id="_keybycollection-iteratee_identity"><code>_.keyBy(collection, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9532 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.keyby "See the npm package") [&#x24C9;][1]
Creates an object composed of keys generated from the results of runningeach element of `collection` thru `iteratee`. The corresponding value ofeach key is the last element responsible for generating the key. Theiteratee is invoked with one argument: *(value)*.
#### Since4.0.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratee=_.identity]` *(Function)*: The iteratee to transform keys.
#### Returns*(Object)*: Returns the composed aggregate object.
#### Example```jsvar array = [ { 'dir': 'left', 'code': 97 }, { 'dir': 'right', 'code': 100 }];
_.keyBy(array, function(o) { return String.fromCharCode(o.code);});// => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
_.keyBy(array, 'dir');// => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }```---
<!-- /div --><!-- div --><h3 id="_mapcollection-iteratee_identity"><code>_.map(collection, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9578 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.map "See the npm package") [&#x24C9;][1]
Creates an array of values by running each element in `collection` thru`iteratee`. The iteratee is invoked with three arguments:<br>*(value, index|key, collection)*.<br><br>Many lodash methods are guarded to work as iteratees for methods like`_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.<br><br>The guarded methods are:<br>`ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,`fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,`sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,`template`, `trim`, `trimEnd`, `trimStart`, and `words`
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the new mapped array.
#### Example```jsfunction square(n) { return n * n;}
_.map([4, 8], square);// => [16, 64]
_.map({ 'a': 4, 'b': 8 }, square);// => [16, 64] (iteration order is not guaranteed)
var users = [ { 'user': 'barney' }, { 'user': 'fred' }];
// The `_.property` iteratee shorthand._.map(users, 'user');// => ['barney', 'fred']```---
<!-- /div --><!-- div --><h3 id="_orderbycollection-iteratees_identity-orders"><code>_.orderBy(collection, [iteratees=[_.identity]], [orders])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9612 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.orderby "See the npm package") [&#x24C9;][1]
This method is like `_.sortBy` except that it allows specifying the sortorders of the iteratees to sort by. If `orders` is unspecified, all valuesare sorted in ascending order. Otherwise, specify an order of "desc" fordescending or "asc" for ascending sort order of corresponding values.
#### Since4.0.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratees=[_.identity]]` *(Array&#91;&#93;|Function&#91;&#93;|Object&#91;&#93;|string&#91;&#93;)*: The iteratees to sort by.3. `[orders]` *(string&#91;&#93;)*: The sort orders of `iteratees`.
#### Returns*(Array)*: Returns the new sorted array.
#### Example```jsvar users = [ { 'user': 'fred', 'age': 48 }, { 'user': 'barney', 'age': 34 }, { 'user': 'fred', 'age': 40 }, { 'user': 'barney', 'age': 36 }];
// Sort by `user` in ascending order and by `age` in descending order._.orderBy(users, ['user', 'age'], ['asc', 'desc']);// => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]```---
<!-- /div --><!-- div --><h3 id="_partitioncollection-predicate_identity"><code>_.partition(collection, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9662 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.partition "See the npm package") [&#x24C9;][1]
Creates an array of elements split into two groups, the first of whichcontains elements `predicate` returns truthy for, the second of whichcontains elements `predicate` returns falsey for. The predicate isinvoked with one argument: *(value)*.
#### Since3.0.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the array of grouped elements.
#### Example```jsvar users = [ { 'user': 'barney', 'age': 36, 'active': false }, { 'user': 'fred', 'age': 40, 'active': true }, { 'user': 'pebbles', 'age': 1, 'active': false }];
_.partition(users, function(o) { return o.active; });// => objects for [['fred'], ['barney', 'pebbles']]
// The `_.matches` iteratee shorthand._.partition(users, { 'age': 1, 'active': false });// => objects for [['pebbles'], ['barney', 'fred']]
// The `_.matchesProperty` iteratee shorthand._.partition(users, ['active', false]);// => objects for [['barney', 'pebbles'], ['fred']]
// The `_.property` iteratee shorthand._.partition(users, 'active');// => objects for [['fred'], ['barney', 'pebbles']]```---
<!-- /div --><!-- div --><h3 id="_reducecollection-iteratee_identity-accumulator"><code>_.reduce(collection, [iteratee=_.identity], [accumulator])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9703 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.reduce "See the npm package") [&#x24C9;][1]
Reduces `collection` to a value which is the accumulated result of runningeach element in `collection` thru `iteratee`, where each successiveinvocation is supplied the return value of the previous. If `accumulator`is not given, the first element of `collection` is used as the initialvalue. The iteratee is invoked with four arguments:<br>*(accumulator, value, index|key, collection)*.<br><br>Many lodash methods are guarded to work as iteratees for methods like`_.reduce`, `_.reduceRight`, and `_.transform`.<br><br>The guarded methods are:<br>`assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,and `sortBy`
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.3. `[accumulator]` *(&#42;)*: The initial value.
#### Returns*(&#42;)*: Returns the accumulated value.
#### Example```js_.reduce([1, 2], function(sum, n) { return sum + n;}, 0);// => 3
_.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { (result[value] || (result[value] = [])).push(key); return result;}, {});// => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)```---
<!-- /div --><!-- div --><h3 id="_reducerightcollection-iteratee_identity-accumulator"><code>_.reduceRight(collection, [iteratee=_.identity], [accumulator])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9732 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.reduceright "See the npm package") [&#x24C9;][1]
This method is like `_.reduce` except that it iterates over elements of`collection` from right to left.
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.3. `[accumulator]` *(&#42;)*: The initial value.
#### Returns*(&#42;)*: Returns the accumulated value.
#### Example```jsvar array = [[0, 1], [2, 3], [4, 5]];
_.reduceRight(array, function(flattened, other) { return flattened.concat(other);}, []);// => [4, 5, 2, 3, 0, 1]```---
<!-- /div --><!-- div --><h3 id="_rejectcollection-predicate_identity"><code>_.reject(collection, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9773 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.reject "See the npm package") [&#x24C9;][1]
The opposite of `_.filter`; this method returns the elements of `collection`that `predicate` does **not** return truthy for.
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the new filtered array.
#### Example```jsvar users = [ { 'user': 'barney', 'age': 36, 'active': false }, { 'user': 'fred', 'age': 40, 'active': true }];
_.reject(users, function(o) { return !o.active; });// => objects for ['fred']
// The `_.matches` iteratee shorthand._.reject(users, { 'age': 40, 'active': true });// => objects for ['barney']
// The `_.matchesProperty` iteratee shorthand._.reject(users, ['active', false]);// => objects for ['fred']
// The `_.property` iteratee shorthand._.reject(users, 'active');// => objects for ['barney']```---
<!-- /div --><!-- div --><h3 id="_samplecollection"><code>_.sample(collection)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9792 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sample "See the npm package") [&#x24C9;][1]
Gets a random element from `collection`.
#### Since2.0.0
#### Arguments1. `collection` *(Array|Object)*: The collection to sample.
#### Returns*(&#42;)*: Returns the random element.
#### Example```js_.sample([1, 2, 3, 4]);// => 2```---
<!-- /div --><!-- div --><h3 id="_samplesizecollection-n1"><code>_.sampleSize(collection, [n=1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9817 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.samplesize "See the npm package") [&#x24C9;][1]
Gets `n` random elements at unique keys from `collection` up to thesize of `collection`.
#### Since4.0.0
#### Arguments1. `collection` *(Array|Object)*: The collection to sample.2. `[n=1]` *(number)*: The number of elements to sample.
#### Returns*(Array)*: Returns the random elements.
#### Example```js_.sampleSize([1, 2, 3], 2);// => [3, 1]
_.sampleSize([1, 2, 3], 4);// => [2, 3, 1]```---
<!-- /div --><!-- div --><h3 id="_shufflecollection"><code>_.shuffle(collection)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9842 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.shuffle "See the npm package") [&#x24C9;][1]
Creates an array of shuffled values, using a version of the[Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object)*: The collection to shuffle.
#### Returns*(Array)*: Returns the new shuffled array.
#### Example```js_.shuffle([1, 2, 3, 4]);// => [4, 1, 3, 2]```---
<!-- /div --><!-- div --><h3 id="_sizecollection"><code>_.size(collection)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9868 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.size "See the npm package") [&#x24C9;][1]
Gets the size of `collection` by returning its length for array-likevalues or the number of own enumerable string keyed properties for objects.
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object|string)*: The collection to inspect.
#### Returns*(number)*: Returns the collection size.
#### Example```js_.size([1, 2, 3]);// => 3
_.size({ 'a': 1, 'b': 2 });// => 2
_.size('pebbles');// => 7```---
<!-- /div --><!-- div --><h3 id="_somecollection-predicate_identity"><code>_.some(collection, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9918 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.some "See the npm package") [&#x24C9;][1]
Checks if `predicate` returns truthy for **any** element of `collection`.Iteration is stopped once `predicate` returns truthy. The predicate isinvoked with three arguments: *(value, index|key, collection)*.
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(boolean)*: Returns `true` if any element passes the predicate check, else `false`.
#### Example```js_.some([null, 0, 'yes', false], Boolean);// => true
var users = [ { 'user': 'barney', 'active': true }, { 'user': 'fred', 'active': false }];
// The `_.matches` iteratee shorthand._.some(users, { 'user': 'barney', 'active': false });// => false
// The `_.matchesProperty` iteratee shorthand._.some(users, ['active', false]);// => true
// The `_.property` iteratee shorthand._.some(users, 'active');// => true```---
<!-- /div --><!-- div --><h3 id="_sortbycollection-iteratees_identity"><code>_.sortBy(collection, [iteratees=[_.identity]])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9955 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sortby "See the npm package") [&#x24C9;][1]
Creates an array of elements, sorted in ascending order by the results ofrunning each element in a collection thru each iteratee. This methodperforms a stable sort, that is, it preserves the original sort order ofequal elements. The iteratees are invoked with one argument: *(value)*.
#### Since0.1.0
#### Arguments1. `collection` *(Array|Object)*: The collection to iterate over.2. `[iteratees=[_.identity]]` *(...(Function|Function&#91;&#93;))*: The iteratees to sort by.
#### Returns*(Array)*: Returns the new sorted array.
#### Example```jsvar users = [ { 'user': 'fred', 'age': 48 }, { 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 30 }, { 'user': 'barney', 'age': 34 }];
_.sortBy(users, [function(o) { return o.user; }]);// => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
_.sortBy(users, ['user', 'age']);// => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]```---
<!-- /div --><!-- /div --><!-- div -->## `“Date” Methods`
<!-- div --><h3 id="_now"><code>_.now()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9986 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.now "See the npm package") [&#x24C9;][1]
Gets the timestamp of the number of milliseconds that have elapsed sincethe Unix epoch *(1 January `1970 00`:00:00 UTC)*.
#### Since2.4.0
#### Returns*(number)*: Returns the timestamp.
#### Example```js_.defer(function(stamp) { console.log(_.now() - stamp);}, _.now());// => Logs the number of milliseconds it took for the deferred invocation.```---
<!-- /div --><!-- /div --><!-- div -->## `“Function” Methods`
<!-- div --><h3 id="_aftern-func"><code>_.after(n, func)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10016 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.after "See the npm package") [&#x24C9;][1]
The opposite of `_.before`; this method creates a function that invokes`func` once it's called `n` or more times.
#### Since0.1.0
#### Arguments1. `n` *(number)*: The number of calls before `func` is invoked.2. `func` *(Function)*: The function to restrict.
#### Returns*(Function)*: Returns the new restricted function.
#### Example```jsvar saves = ['profile', 'settings'];
var done = _.after(saves.length, function() { console.log('done saving!');});
_.forEach(saves, function(type) { asyncSave({ 'type': type, 'complete': done });});// => Logs 'done saving!' after the two async saves have completed.```---
<!-- /div --><!-- div --><h3 id="_aryfunc-nfunclength"><code>_.ary(func, [n=func.length])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10045 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.ary "See the npm package") [&#x24C9;][1]
Creates a function that invokes `func`, with up to `n` arguments,ignoring any additional arguments.
#### Since3.0.0
#### Arguments1. `func` *(Function)*: The function to cap arguments for.2. `[n=func.length]` *(number)*: The arity cap.
#### Returns*(Function)*: Returns the new capped function.
#### Example```js_.map(['6', '8', '10'], _.ary(parseInt, 1));// => [6, 8, 10]```---
<!-- /div --><!-- div --><h3 id="_beforen-func"><code>_.before(n, func)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10068 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.before "See the npm package") [&#x24C9;][1]
Creates a function that invokes `func`, with the `this` binding and argumentsof the created function, while it's called less than `n` times. Subsequentcalls to the created function return the result of the last `func` invocation.
#### Since3.0.0
#### Arguments1. `n` *(number)*: The number of calls at which `func` is no longer invoked.2. `func` *(Function)*: The function to restrict.
#### Returns*(Function)*: Returns the new restricted function.
#### Example```jsjQuery(element).on('click', _.before(5, addContactToList));// => Allows adding up to 4 contacts to the list.```---
<!-- /div --><!-- div --><h3 id="_bindfunc-thisarg-partials"><code>_.bind(func, thisArg, [partials])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10120 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.bind "See the npm package") [&#x24C9;][1]
Creates a function that invokes `func` with the `this` binding of `thisArg`and `partials` prepended to the arguments it receives.<br><br>The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,may be used as a placeholder for partially applied arguments.<br><br>**Note:** Unlike native `Function#bind`, this method doesn't set the "length"property of bound functions.
#### Since0.1.0
#### Arguments1. `func` *(Function)*: The function to bind.2. `thisArg` *(&#42;)*: The `this` binding of `func`.3. `[partials]` *(...&#42;)*: The arguments to be partially applied.
#### Returns*(Function)*: Returns the new bound function.
#### Example```jsfunction greet(greeting, punctuation) { return greeting + ' ' + this.user + punctuation;}
var object = { 'user': 'fred' };
var bound = _.bind(greet, object, 'hi');bound('!');// => 'hi fred!'
// Bound with placeholders.var bound = _.bind(greet, object, _, '!');bound('hi');// => 'hi fred!'```---
<!-- /div --><!-- div --><h3 id="_bindkeyobject-key-partials"><code>_.bindKey(object, key, [partials])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10174 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.bindkey "See the npm package") [&#x24C9;][1]
Creates a function that invokes the method at `object[key]` with `partials`prepended to the arguments it receives.<br><br>This method differs from `_.bind` by allowing bound functions to referencemethods that may be redefined or don't yet exist. See[Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)for more details.<br><br>The `_.bindKey.placeholder` value, which defaults to `_` in monolithicbuilds, may be used as a placeholder for partially applied arguments.
#### Since0.10.0
#### Arguments1. `object` *(Object)*: The object to invoke the method on.2. `key` *(string)*: The key of the method.3. `[partials]` *(...&#42;)*: The arguments to be partially applied.
#### Returns*(Function)*: Returns the new bound function.
#### Example```jsvar object = { 'user': 'fred', 'greet': function(greeting, punctuation) { return greeting + ' ' + this.user + punctuation; }};
var bound = _.bindKey(object, 'greet', 'hi');bound('!');// => 'hi fred!'
object.greet = function(greeting, punctuation) { return greeting + 'ya ' + this.user + punctuation;};
bound('!');// => 'hiya fred!'
// Bound with placeholders.var bound = _.bindKey(object, 'greet', _, '!');bound('hi');// => 'hiya fred!'```---
<!-- /div --><!-- div --><h3 id="_curryfunc-arityfunclength"><code>_.curry(func, [arity=func.length])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10224 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.curry "See the npm package") [&#x24C9;][1]
Creates a function that accepts arguments of `func` and either invokes`func` returning its result, if at least `arity` number of arguments havebeen provided, or returns a function that accepts the remaining `func`arguments, and so on. The arity of `func` may be specified if `func.length`is not sufficient.<br><br>The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,may be used as a placeholder for provided arguments.<br><br>**Note:** This method doesn't set the "length" property of curried functions.
#### Since2.0.0
#### Arguments1. `func` *(Function)*: The function to curry.2. `[arity=func.length]` *(number)*: The arity of `func`.
#### Returns*(Function)*: Returns the new curried function.
#### Example```jsvar abc = function(a, b, c) { return [a, b, c];};
var curried = _.curry(abc);
curried(1)(2)(3);// => [1, 2, 3]
curried(1, 2)(3);// => [1, 2, 3]
curried(1, 2, 3);// => [1, 2, 3]
// Curried with placeholders.curried(1)(_, 3)(2);// => [1, 2, 3]```---
<!-- /div --><!-- div --><h3 id="_curryrightfunc-arityfunclength"><code>_.curryRight(func, [arity=func.length])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10269 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.curryright "See the npm package") [&#x24C9;][1]
This method is like `_.curry` except that arguments are applied to `func`in the manner of `_.partialRight` instead of `_.partial`.<br><br>The `_.curryRight.placeholder` value, which defaults to `_` in monolithicbuilds, may be used as a placeholder for provided arguments.<br><br>**Note:** This method doesn't set the "length" property of curried functions.
#### Since3.0.0
#### Arguments1. `func` *(Function)*: The function to curry.2. `[arity=func.length]` *(number)*: The arity of `func`.
#### Returns*(Function)*: Returns the new curried function.
#### Example```jsvar abc = function(a, b, c) { return [a, b, c];};
var curried = _.curryRight(abc);
curried(3)(2)(1);// => [1, 2, 3]
curried(2, 3)(1);// => [1, 2, 3]
curried(1, 2, 3);// => [1, 2, 3]
// Curried with placeholders.curried(3)(1, _)(2);// => [1, 2, 3]```---
<!-- /div --><!-- div --><h3 id="_debouncefunc-wait0-options"><code>_.debounce(func, [wait=0], [options={}])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10330 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.debounce "See the npm package") [&#x24C9;][1]
Creates a debounced function that delays invoking `func` until after `wait`milliseconds have elapsed since the last time the debounced function wasinvoked. The debounced function comes with a `cancel` method to canceldelayed `func` invocations and a `flush` method to immediately invoke them.Provide `options` to indicate whether `func` should be invoked on theleading and/or trailing edge of the `wait` timeout. The `func` is invokedwith the last arguments provided to the debounced function. Subsequentcalls to the debounced function return the result of the last `func`invocation.<br><br>**Note:** If `leading` and `trailing` options are `true`, `func` isinvoked on the trailing edge of the timeout only if the debounced functionis invoked more than once during the `wait` timeout.<br><br>If `wait` is `0` and `leading` is `false`, `func` invocation is deferreduntil to the next tick, similar to `setTimeout` with a timeout of `0`.<br><br>See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)for details over the differences between `_.debounce` and `_.throttle`.
#### Since0.1.0
#### Arguments1. `func` *(Function)*: The function to debounce.2. `[wait=0]` *(number)*: The number of milliseconds to delay.3. `[options={}]` *(Object)*: The options object.4. `[options.leading=false]` *(boolean)*: Specify invoking on the leading edge of the timeout.5. `[options.maxWait]` *(number)*: The maximum time `func` is allowed to be delayed before it's invoked.6. `[options.trailing=true]` *(boolean)*: Specify invoking on the trailing edge of the timeout.
#### Returns*(Function)*: Returns the new debounced function.
#### Example```js// Avoid costly calculations while the window size is in flux.jQuery(window).on('resize', _.debounce(calculateLayout, 150));
// Invoke `sendMail` when clicked, debouncing subsequent calls.jQuery(element).on('click', _.debounce(sendMail, 300, { 'leading': true, 'trailing': false}));
// Ensure `batchLog` is invoked once after 1 second of debounced calls.var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });var source = new EventSource('/stream');jQuery(source).on('message', debounced);
// Cancel the trailing debounced invocation.jQuery(window).on('popstate', debounced.cancel);```---
<!-- /div --><!-- div --><h3 id="_deferfunc-args"><code>_.defer(func, [args])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10473 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.defer "See the npm package") [&#x24C9;][1]
Defers invoking the `func` until the current call stack has cleared. Anyadditional arguments are provided to `func` when it's invoked.
#### Since0.1.0
#### Arguments1. `func` *(Function)*: The function to defer.2. `[args]` *(...&#42;)*: The arguments to invoke `func` with.
#### Returns*(number)*: Returns the timer id.
#### Example```js_.defer(function(text) { console.log(text);}, 'deferred');// => Logs 'deferred' after one millisecond.```---
<!-- /div --><!-- div --><h3 id="_delayfunc-wait-args"><code>_.delay(func, wait, [args])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10496 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.delay "See the npm package") [&#x24C9;][1]
Invokes `func` after `wait` milliseconds. Any additional arguments areprovided to `func` when it's invoked.
#### Since0.1.0
#### Arguments1. `func` *(Function)*: The function to delay.2. `wait` *(number)*: The number of milliseconds to delay invocation.3. `[args]` *(...&#42;)*: The arguments to invoke `func` with.
#### Returns*(number)*: Returns the timer id.
#### Example```js_.delay(function(text) { console.log(text);}, 1000, 'later');// => Logs 'later' after one second.```---
<!-- /div --><!-- div --><h3 id="_flipfunc"><code>_.flip(func)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10518 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.flip "See the npm package") [&#x24C9;][1]
Creates a function that invokes `func` with arguments reversed.
#### Since4.0.0
#### Arguments1. `func` *(Function)*: The function to flip arguments for.
#### Returns*(Function)*: Returns the new flipped function.
#### Example```jsvar flipped = _.flip(function() { return _.toArray(arguments);});
flipped('a', 'b', 'c', 'd');// => ['d', 'c', 'b', 'a']```---
<!-- /div --><!-- div --><h3 id="_memoizefunc-resolver"><code>_.memoize(func, [resolver])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10566 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.memoize "See the npm package") [&#x24C9;][1]
Creates a function that memoizes the result of `func`. If `resolver` isprovided, it determines the cache key for storing the result based on thearguments provided to the memoized function. By default, the first argumentprovided to the memoized function is used as the map cache key. The `func`is invoked with the `this` binding of the memoized function.<br><br>**Note:** The cache is exposed as the `cache` property on the memoizedfunction. Its creation may be customized by replacing the `_.memoize.Cache`constructor with one whose instances implement the[`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)method interface of `clear`, `delete`, `get`, `has`, and `set`.
#### Since0.1.0
#### Arguments1. `func` *(Function)*: The function to have its output memoized.2. `[resolver]` *(Function)*: The function to resolve the cache key.
#### Returns*(Function)*: Returns the new memoized function.
#### Example```jsvar object = { 'a': 1, 'b': 2 };var other = { 'c': 3, 'd': 4 };
var values = _.memoize(_.values);values(object);// => [1, 2]
values(other);// => [3, 4]
object.a = 2;values(object);// => [1, 2]
// Modify the result cache.values.cache.set(object, ['a', 'b']);values(object);// => ['a', 'b']
// Replace `_.memoize.Cache`._.memoize.Cache = WeakMap;```---
<!-- /div --><!-- div --><h3 id="_negatepredicate"><code>_.negate(predicate)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10609 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.negate "See the npm package") [&#x24C9;][1]
Creates a function that negates the result of the predicate `func`. The`func` predicate is invoked with the `this` binding and arguments of thecreated function.
#### Since3.0.0
#### Arguments1. `predicate` *(Function)*: The predicate to negate.
#### Returns*(Function)*: Returns the new negated function.
#### Example```jsfunction isEven(n) { return n % 2 == 0;}
_.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));// => [1, 3, 5]```---
<!-- /div --><!-- div --><h3 id="_oncefunc"><code>_.once(func)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10643 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.once "See the npm package") [&#x24C9;][1]
Creates a function that is restricted to invoking `func` once. Repeat callsto the function return the value of the first invocation. The `func` isinvoked with the `this` binding and arguments of the created function.
#### Since0.1.0
#### Arguments1. `func` *(Function)*: The function to restrict.
#### Returns*(Function)*: Returns the new restricted function.
#### Example```jsvar initialize = _.once(createApplication);initialize();initialize();// => `createApplication` is invoked once```---
<!-- /div --><!-- div --><h3 id="_overargsfunc-transforms_identity"><code>_.overArgs(func, [transforms=[_.identity]])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10678 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.overargs "See the npm package") [&#x24C9;][1]
Creates a function that invokes `func` with its arguments transformed.
#### Since4.0.0
#### Arguments1. `func` *(Function)*: The function to wrap.2. `[transforms=[_.identity]]` *(...(Function|Function&#91;&#93;))*: The argument transforms.
#### Returns*(Function)*: Returns the new function.
#### Example```jsfunction doubled(n) { return n * 2;}
function square(n) { return n * n;}
var func = _.overArgs(function(x, y) { return [x, y];}, [square, doubled]);
func(9, 3);// => [81, 6]
func(10, 5);// => [100, 10]```---
<!-- /div --><!-- div --><h3 id="_partialfunc-partials"><code>_.partial(func, [partials])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10728 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.partial "See the npm package") [&#x24C9;][1]
Creates a function that invokes `func` with `partials` prepended to thearguments it receives. This method is like `_.bind` except it does **not**alter the `this` binding.<br><br>The `_.partial.placeholder` value, which defaults to `_` in monolithicbuilds, may be used as a placeholder for partially applied arguments.<br><br>**Note:** This method doesn't set the "length" property of partiallyapplied functions.
#### Since0.2.0
#### Arguments1. `func` *(Function)*: The function to partially apply arguments to.2. `[partials]` *(...&#42;)*: The arguments to be partially applied.
#### Returns*(Function)*: Returns the new partially applied function.
#### Example```jsfunction greet(greeting, name) { return greeting + ' ' + name;}
var sayHelloTo = _.partial(greet, 'hello');sayHelloTo('fred');// => 'hello fred'
// Partially applied with placeholders.var greetFred = _.partial(greet, _, 'fred');greetFred('hi');// => 'hi fred'```---
<!-- /div --><!-- div --><h3 id="_partialrightfunc-partials"><code>_.partialRight(func, [partials])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10765 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.partialright "See the npm package") [&#x24C9;][1]
This method is like `_.partial` except that partially applied argumentsare appended to the arguments it receives.<br><br>The `_.partialRight.placeholder` value, which defaults to `_` in monolithicbuilds, may be used as a placeholder for partially applied arguments.<br><br>**Note:** This method doesn't set the "length" property of partiallyapplied functions.
#### Since1.0.0
#### Arguments1. `func` *(Function)*: The function to partially apply arguments to.2. `[partials]` *(...&#42;)*: The arguments to be partially applied.
#### Returns*(Function)*: Returns the new partially applied function.
#### Example```jsfunction greet(greeting, name) { return greeting + ' ' + name;}
var greetFred = _.partialRight(greet, 'fred');greetFred('hi');// => 'hi fred'
// Partially applied with placeholders.var sayHelloTo = _.partialRight(greet, 'hello', _);sayHelloTo('fred');// => 'hello fred'```---
<!-- /div --><!-- div --><h3 id="_reargfunc-indexes"><code>_.rearg(func, indexes)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10792 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.rearg "See the npm package") [&#x24C9;][1]
Creates a function that invokes `func` with arguments arranged accordingto the specified `indexes` where the argument value at the first index isprovided as the first argument, the argument value at the second index isprovided as the second argument, and so on.
#### Since3.0.0
#### Arguments1. `func` *(Function)*: The function to rearrange arguments for.2. `indexes` *(...(number|number&#91;&#93;))*: The arranged argument indexes.
#### Returns*(Function)*: Returns the new function.
#### Example```jsvar rearged = _.rearg(function(a, b, c) { return [a, b, c];}, [2, 0, 1]);
rearged('b', 'c', 'a')// => ['a', 'b', 'c']```---
<!-- /div --><!-- div --><h3 id="_restfunc-startfunclength-1"><code>_.rest(func, [start=func.length-1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10821 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.rest "See the npm package") [&#x24C9;][1]
Creates a function that invokes `func` with the `this` binding of thecreated function and arguments from `start` and beyond provided asan array.<br><br>**Note:** This method is based on the[rest parameter](https://mdn.io/rest_parameters).
#### Since4.0.0
#### Arguments1. `func` *(Function)*: The function to apply a rest parameter to.2. `[start=func.length-1]` *(number)*: The start position of the rest parameter.
#### Returns*(Function)*: Returns the new function.
#### Example```jsvar say = _.rest(function(what, names) { return what + ' ' + _.initial(names).join(', ') + (_.size(names) > 1 ? ', & ' : '') + _.last(names);});
say('hello', 'fred', 'barney', 'pebbles');// => 'hello fred, barney, & pebbles'```---
<!-- /div --><!-- div --><h3 id="_spreadfunc-start0"><code>_.spread(func, [start=0])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10863 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.spread "See the npm package") [&#x24C9;][1]
Creates a function that invokes `func` with the `this` binding of thecreate function and an array of arguments much like[`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).<br><br>**Note:** This method is based on the[spread operator](https://mdn.io/spread_operator).
#### Since3.2.0
#### Arguments1. `func` *(Function)*: The function to spread arguments over.2. `[start=0]` *(number)*: The start position of the spread.
#### Returns*(Function)*: Returns the new function.
#### Example```jsvar say = _.spread(function(who, what) { return who + ' says ' + what;});
say(['fred', 'hello']);// => 'fred says hello'
var numbers = Promise.all([ Promise.resolve(40), Promise.resolve(36)]);
numbers.then(_.spread(function(x, y) { return x + y;}));// => a Promise of 76```---
<!-- /div --><!-- div --><h3 id="_throttlefunc-wait0-options"><code>_.throttle(func, [wait=0], [options={}])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10923 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.throttle "See the npm package") [&#x24C9;][1]
Creates a throttled function that only invokes `func` at most once perevery `wait` milliseconds. The throttled function comes with a `cancel`method to cancel delayed `func` invocations and a `flush` method toimmediately invoke them. Provide `options` to indicate whether `func`should be invoked on the leading and/or trailing edge of the `wait`timeout. The `func` is invoked with the last arguments provided to thethrottled function. Subsequent calls to the throttled function return theresult of the last `func` invocation.<br><br>**Note:** If `leading` and `trailing` options are `true`, `func` isinvoked on the trailing edge of the timeout only if the throttled functionis invoked more than once during the `wait` timeout.<br><br>If `wait` is `0` and `leading` is `false`, `func` invocation is deferreduntil to the next tick, similar to `setTimeout` with a timeout of `0`.<br><br>See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)for details over the differences between `_.throttle` and `_.debounce`.
#### Since0.1.0
#### Arguments1. `func` *(Function)*: The function to throttle.2. `[wait=0]` *(number)*: The number of milliseconds to throttle invocations to.3. `[options={}]` *(Object)*: The options object.4. `[options.leading=true]` *(boolean)*: Specify invoking on the leading edge of the timeout.5. `[options.trailing=true]` *(boolean)*: Specify invoking on the trailing edge of the timeout.
#### Returns*(Function)*: Returns the new throttled function.
#### Example```js// Avoid excessively updating the position while scrolling.jQuery(window).on('scroll', _.throttle(updatePosition, 100));
// Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.var throttled = _.throttle(renewToken, 300000, { 'trailing': false });jQuery(element).on('click', throttled);
// Cancel the trailing throttled invocation.jQuery(window).on('popstate', throttled.cancel);```---
<!-- /div --><!-- div --><h3 id="_unaryfunc"><code>_.unary(func)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10956 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.unary "See the npm package") [&#x24C9;][1]
Creates a function that accepts up to one argument, ignoring anyadditional arguments.
#### Since4.0.0
#### Arguments1. `func` *(Function)*: The function to cap arguments for.
#### Returns*(Function)*: Returns the new capped function.
#### Example```js_.map(['6', '8', '10'], _.unary(parseInt));// => [6, 8, 10]```---
<!-- /div --><!-- div --><h3 id="_wrapvalue-wrapperidentity"><code>_.wrap(value, [wrapper=identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L10982 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.wrap "See the npm package") [&#x24C9;][1]
Creates a function that provides `value` to `wrapper` as its firstargument. Any additional arguments provided to the function are appendedto those provided to the `wrapper`. The wrapper is invoked with the `this`binding of the created function.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to wrap.2. `[wrapper=identity]` *(Function)*: The wrapper function.
#### Returns*(Function)*: Returns the new function.
#### Example```jsvar p = _.wrap(_.escape, function(func, text) { return '<p>' + func(text) + '</p>';});
p('fred, barney, & pebbles');// => '<p>fred, barney, &amp; pebbles</p>'```---
<!-- /div --><!-- /div --><!-- div -->## `“Lang” Methods`
<!-- div --><h3 id="_castarrayvalue"><code>_.castArray(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11021 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.castarray "See the npm package") [&#x24C9;][1]
Casts `value` as an array if it's not one.
#### Since4.4.0
#### Arguments1. `value` *(&#42;)*: The value to inspect.
#### Returns*(Array)*: Returns the cast array.
#### Example```js_.castArray(1);// => [1]
_.castArray({ 'a': 1 });// => [{ 'a': 1 }]
_.castArray('abc');// => ['abc']
_.castArray(null);// => [null]
_.castArray(undefined);// => [undefined]
_.castArray();// => []
var array = [1, 2, 3];console.log(_.castArray(array) === array);// => true```---
<!-- /div --><!-- div --><h3 id="_clonevalue"><code>_.clone(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11055 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.clone "See the npm package") [&#x24C9;][1]
Creates a shallow clone of `value`.<br><br>**Note:** This method is loosely based on the[structured clone algorithm](https://mdn.io/Structured_clone_algorithm)and supports cloning arrays, array buffers, booleans, date objects, maps,numbers, `Object` objects, regexes, sets, strings, symbols, and typedarrays. The own enumerable properties of `arguments` objects are clonedas plain objects. An empty object is returned for uncloneable values suchas error objects, functions, DOM nodes, and WeakMaps.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to clone.
#### Returns*(&#42;)*: Returns the cloned value.
#### Example```jsvar objects = [{ 'a': 1 }, { 'b': 2 }];
var shallow = _.clone(objects);console.log(shallow[0] === objects[0]);// => true```---
<!-- /div --><!-- div --><h3 id="_clonedeepvalue"><code>_.cloneDeep(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11113 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.clonedeep "See the npm package") [&#x24C9;][1]
This method is like `_.clone` except that it recursively clones `value`.
#### Since1.0.0
#### Arguments1. `value` *(&#42;)*: The value to recursively clone.
#### Returns*(&#42;)*: Returns the deep cloned value.
#### Example```jsvar objects = [{ 'a': 1 }, { 'b': 2 }];
var deep = _.cloneDeep(objects);console.log(deep[0] === objects[0]);// => false```---
<!-- /div --><!-- div --><h3 id="_clonedeepwithvalue-customizer"><code>_.cloneDeepWith(value, [customizer])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11145 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.clonedeepwith "See the npm package") [&#x24C9;][1]
This method is like `_.cloneWith` except that it recursively clones `value`.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to recursively clone.2. `[customizer]` *(Function)*: The function to customize cloning.
#### Returns*(&#42;)*: Returns the deep cloned value.
#### Example```jsfunction customizer(value) { if (_.isElement(value)) { return value.cloneNode(true); }}
var el = _.cloneDeepWith(document.body, customizer);
console.log(el === document.body);// => falseconsole.log(el.nodeName);// => 'BODY'console.log(el.childNodes.length);// => 20```---
<!-- /div --><!-- div --><h3 id="_clonewithvalue-customizer"><code>_.cloneWith(value, [customizer])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11090 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.clonewith "See the npm package") [&#x24C9;][1]
This method is like `_.clone` except that it accepts `customizer` whichis invoked to produce the cloned value. If `customizer` returns `undefined`,cloning is handled by the method instead. The `customizer` is invoked withup to four arguments; *(value [, index|key, object, stack])*.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to clone.2. `[customizer]` *(Function)*: The function to customize cloning.
#### Returns*(&#42;)*: Returns the cloned value.
#### Example```jsfunction customizer(value) { if (_.isElement(value)) { return value.cloneNode(false); }}
var el = _.cloneWith(document.body, customizer);
console.log(el === document.body);// => falseconsole.log(el.nodeName);// => 'BODY'console.log(el.childNodes.length);// => 0```---
<!-- /div --><!-- div --><h3 id="_conformstoobject-source"><code>_.conformsTo(object, source)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11174 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.conformsto "See the npm package") [&#x24C9;][1]
Checks if `object` conforms to `source` by invoking the predicateproperties of `source` with the corresponding property values of `object`.<br><br>**Note:** This method is equivalent to `_.conforms` when `source` ispartially applied.
#### Since4.14.0
#### Arguments1. `object` *(Object)*: The object to inspect.2. `source` *(Object)*: The object of property predicates to conform to.
#### Returns*(boolean)*: Returns `true` if `object` conforms, else `false`.
#### Example```jsvar object = { 'a': 1, 'b': 2 };
_.conformsTo(object, { 'b': function(n) { return n > 1; } });// => true
_.conformsTo(object, { 'b': function(n) { return n > 2; } });// => false```---
<!-- /div --><!-- div --><h3 id="_eqvalue-other"><code>_.eq(value, other)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11210 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.eq "See the npm package") [&#x24C9;][1]
Performs a[`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)comparison between two values to determine if they are equivalent.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to compare.2. `other` *(&#42;)*: The other value to compare.
#### Returns*(boolean)*: Returns `true` if the values are equivalent, else `false`.
#### Example```jsvar object = { 'a': 1 };var other = { 'a': 1 };
_.eq(object, object);// => true
_.eq(object, other);// => false
_.eq('a', 'a');// => true
_.eq('a', Object('a'));// => false
_.eq(NaN, NaN);// => true```---
<!-- /div --><!-- div --><h3 id="_gtvalue-other"><code>_.gt(value, other)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11237 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.gt "See the npm package") [&#x24C9;][1]
Checks if `value` is greater than `other`.
#### Since3.9.0
#### Arguments1. `value` *(&#42;)*: The value to compare.2. `other` *(&#42;)*: The other value to compare.
#### Returns*(boolean)*: Returns `true` if `value` is greater than `other`, else `false`.
#### Example```js_.gt(3, 1);// => true
_.gt(3, 3);// => false
_.gt(1, 3);// => false```---
<!-- /div --><!-- div --><h3 id="_gtevalue-other"><code>_.gte(value, other)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11262 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.gte "See the npm package") [&#x24C9;][1]
Checks if `value` is greater than or equal to `other`.
#### Since3.9.0
#### Arguments1. `value` *(&#42;)*: The value to compare.2. `other` *(&#42;)*: The other value to compare.
#### Returns*(boolean)*: Returns `true` if `value` is greater than or equal to `other`, else `false`.
#### Example```js_.gte(3, 1);// => true
_.gte(3, 3);// => true
_.gte(1, 3);// => false```---
<!-- /div --><!-- div --><h3 id="_isargumentsvalue"><code>_.isArguments(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11284 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isarguments "See the npm package") [&#x24C9;][1]
Checks if `value` is likely an `arguments` object.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is an `arguments` object, else `false`.
#### Example```js_.isArguments(function() { return arguments; }());// => true
_.isArguments([1, 2, 3]);// => false```---
<!-- /div --><!-- div --><h3 id="_isarrayvalue"><code>_.isArray(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11312 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isarray "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as an `Array` object.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is an array, else `false`.
#### Example```js_.isArray([1, 2, 3]);// => true
_.isArray(document.body.children);// => false
_.isArray('abc');// => false
_.isArray(_.noop);// => false```---
<!-- /div --><!-- div --><h3 id="_isarraybuffervalue"><code>_.isArrayBuffer(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11331 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isarraybuffer "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as an `ArrayBuffer` object.
#### Since4.3.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is an array buffer, else `false`.
#### Example```js_.isArrayBuffer(new ArrayBuffer(2));// => true
_.isArrayBuffer(new Array(2));// => false```---
<!-- /div --><!-- div --><h3 id="_isarraylikevalue"><code>_.isArrayLike(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11358 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isarraylike "See the npm package") [&#x24C9;][1]
Checks if `value` is array-like. A value is considered array-like if it'snot a function and has a `value.length` that's an integer greater than orequal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is array-like, else `false`.
#### Example```js_.isArrayLike([1, 2, 3]);// => true
_.isArrayLike(document.body.children);// => true
_.isArrayLike('abc');// => true
_.isArrayLike(_.noop);// => false```---
<!-- /div --><!-- div --><h3 id="_isarraylikeobjectvalue"><code>_.isArrayLikeObject(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11387 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isarraylikeobject "See the npm package") [&#x24C9;][1]
This method is like `_.isArrayLike` except that it also checks if `value`is an object.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is an array-like object, else `false`.
#### Example```js_.isArrayLikeObject([1, 2, 3]);// => true
_.isArrayLikeObject(document.body.children);// => true
_.isArrayLikeObject('abc');// => false
_.isArrayLikeObject(_.noop);// => false```---
<!-- /div --><!-- div --><h3 id="_isbooleanvalue"><code>_.isBoolean(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11408 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isboolean "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a boolean primitive or object.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a boolean, else `false`.
#### Example```js_.isBoolean(false);// => true
_.isBoolean(null);// => false```---
<!-- /div --><!-- div --><h3 id="_isbuffervalue"><code>_.isBuffer(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11430 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isbuffer "See the npm package") [&#x24C9;][1]
Checks if `value` is a buffer.
#### Since4.3.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a buffer, else `false`.
#### Example```js_.isBuffer(new Buffer(2));// => true
_.isBuffer(new Uint8Array(2));// => false```---
<!-- /div --><!-- div --><h3 id="_isdatevalue"><code>_.isDate(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11449 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isdate "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a `Date` object.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a date object, else `false`.
#### Example```js_.isDate(new Date);// => true
_.isDate('Mon April 23 2012');// => false```---
<!-- /div --><!-- div --><h3 id="_iselementvalue"><code>_.isElement(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11468 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.iselement "See the npm package") [&#x24C9;][1]
Checks if `value` is likely a DOM element.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a DOM element, else `false`.
#### Example```js_.isElement(document.body);// => true
_.isElement('<body>');// => false```---
<!-- /div --><!-- div --><h3 id="_isemptyvalue"><code>_.isEmpty(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11505 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isempty "See the npm package") [&#x24C9;][1]
Checks if `value` is an empty object, collection, map, or set.<br><br>Objects are considered empty if they have no own enumerable string keyedproperties.<br><br>Array-like values such as `arguments` objects, arrays, buffers, strings, orjQuery-like collections are considered empty if they have a `length` of `0`.Similarly, maps and sets are considered empty if they have a `size` of `0`.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is empty, else `false`.
#### Example```js_.isEmpty(null);// => true
_.isEmpty(true);// => true
_.isEmpty(1);// => true
_.isEmpty([1, 2, 3]);// => false
_.isEmpty({ 'a': 1 });// => false```---
<!-- /div --><!-- div --><h3 id="_isequalvalue-other"><code>_.isEqual(value, other)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11557 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isequal "See the npm package") [&#x24C9;][1]
Performs a deep comparison between two values to determine if they areequivalent.<br><br>**Note:** This method supports comparing arrays, array buffers, booleans,date objects, error objects, maps, numbers, `Object` objects, regexes,sets, strings, symbols, and typed arrays. `Object` objects are comparedby their own, not inherited, enumerable properties. Functions and DOMnodes are compared by strict equality, i.e. `===`.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to compare.2. `other` *(&#42;)*: The other value to compare.
#### Returns*(boolean)*: Returns `true` if the values are equivalent, else `false`.
#### Example```jsvar object = { 'a': 1 };var other = { 'a': 1 };
_.isEqual(object, other);// => true
object === other;// => false```---
<!-- /div --><!-- div --><h3 id="_isequalwithvalue-other-customizer"><code>_.isEqualWith(value, other, [customizer])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11593 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isequalwith "See the npm package") [&#x24C9;][1]
This method is like `_.isEqual` except that it accepts `customizer` whichis invoked to compare values. If `customizer` returns `undefined`, comparisonsare handled by the method instead. The `customizer` is invoked with up tosix arguments: *(objValue, othValue [, index|key, object, other, stack])*.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to compare.2. `other` *(&#42;)*: The other value to compare.3. `[customizer]` *(Function)*: The function to customize comparisons.
#### Returns*(boolean)*: Returns `true` if the values are equivalent, else `false`.
#### Example```jsfunction isGreeting(value) { return /^h(?:i|ello)$/.test(value);}
function customizer(objValue, othValue) { if (isGreeting(objValue) && isGreeting(othValue)) { return true; }}
var array = ['hello', 'goodbye'];var other = ['hi', 'goodbye'];
_.isEqualWith(array, other, customizer);// => true```---
<!-- /div --><!-- div --><h3 id="_iserrorvalue"><code>_.isError(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11617 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.iserror "See the npm package") [&#x24C9;][1]
Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,`SyntaxError`, `TypeError`, or `URIError` object.
#### Since3.0.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is an error object, else `false`.
#### Example```js_.isError(new Error);// => true
_.isError(Error);// => false```---
<!-- /div --><!-- div --><h3 id="_isfinitevalue"><code>_.isFinite(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11652 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isfinite "See the npm package") [&#x24C9;][1]
Checks if `value` is a finite primitive number.<br><br>**Note:** This method is based on[`Number.isFinite`](https://mdn.io/Number/isFinite).
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a finite number, else `false`.
#### Example```js_.isFinite(3);// => true
_.isFinite(Number.MIN_VALUE);// => true
_.isFinite(Infinity);// => false
_.isFinite('3');// => false```---
<!-- /div --><!-- div --><h3 id="_isfunctionvalue"><code>_.isFunction(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11673 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isfunction "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a `Function` object.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a function, else `false`.
#### Example```js_.isFunction(_);// => true
_.isFunction(/abc/);// => false```---
<!-- /div --><!-- div --><h3 id="_isintegervalue"><code>_.isInteger(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11709 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isinteger "See the npm package") [&#x24C9;][1]
Checks if `value` is an integer.<br><br>**Note:** This method is based on[`Number.isInteger`](https://mdn.io/Number/isInteger).
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is an integer, else `false`.
#### Example```js_.isInteger(3);// => true
_.isInteger(Number.MIN_VALUE);// => false
_.isInteger(Infinity);// => false
_.isInteger('3');// => false```---
<!-- /div --><!-- div --><h3 id="_islengthvalue"><code>_.isLength(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11739 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.islength "See the npm package") [&#x24C9;][1]
Checks if `value` is a valid array-like length.<br><br>**Note:** This method is loosely based on[`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a valid length, else `false`.
#### Example```js_.isLength(3);// => true
_.isLength(Number.MIN_VALUE);// => false
_.isLength(Infinity);// => false
_.isLength('3');// => false```---
<!-- /div --><!-- div --><h3 id="_ismapvalue"><code>_.isMap(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11819 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.ismap "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a `Map` object.
#### Since4.3.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a map, else `false`.
#### Example```js_.isMap(new Map);// => true
_.isMap(new WeakMap);// => false```---
<!-- /div --><!-- div --><h3 id="_ismatchobject-source"><code>_.isMatch(object, source)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11849 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.ismatch "See the npm package") [&#x24C9;][1]
Performs a partial deep comparison between `object` and `source` todetermine if `object` contains equivalent property values.<br><br>**Note:** This method is equivalent to `_.matches` when `source` ispartially applied.<br><br>Partial comparisons will match empty array and empty object `source`values against any array or object value, respectively. See `_.isEqual`for a list of supported value comparisons.
#### Since3.0.0
#### Arguments1. `object` *(Object)*: The object to inspect.2. `source` *(Object)*: The object of property values to match.
#### Returns*(boolean)*: Returns `true` if `object` is a match, else `false`.
#### Example```jsvar object = { 'a': 1, 'b': 2 };
_.isMatch(object, { 'b': 2 });// => true
_.isMatch(object, { 'b': 1 });// => false```---
<!-- /div --><!-- div --><h3 id="_ismatchwithobject-source-customizer"><code>_.isMatchWith(object, source, [customizer])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11885 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.ismatchwith "See the npm package") [&#x24C9;][1]
This method is like `_.isMatch` except that it accepts `customizer` whichis invoked to compare values. If `customizer` returns `undefined`, comparisonsare handled by the method instead. The `customizer` is invoked with fivearguments: *(objValue, srcValue, index|key, object, source)*.
#### Since4.0.0
#### Arguments1. `object` *(Object)*: The object to inspect.2. `source` *(Object)*: The object of property values to match.3. `[customizer]` *(Function)*: The function to customize comparisons.
#### Returns*(boolean)*: Returns `true` if `object` is a match, else `false`.
#### Example```jsfunction isGreeting(value) { return /^h(?:i|ello)$/.test(value);}
function customizer(objValue, srcValue) { if (isGreeting(objValue) && isGreeting(srcValue)) { return true; }}
var object = { 'greeting': 'hello' };var source = { 'greeting': 'hi' };
_.isMatchWith(object, source, customizer);// => true```---
<!-- /div --><!-- div --><h3 id="_isnanvalue"><code>_.isNaN(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11918 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isnan "See the npm package") [&#x24C9;][1]
Checks if `value` is `NaN`.<br><br>**Note:** This method is based on[`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same asglobal [`isNaN`](https://mdn.io/isNaN) which returns `true` for`undefined` and other non-number values.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is `NaN`, else `false`.
#### Example```js_.isNaN(NaN);// => true
_.isNaN(new Number(NaN));// => true
isNaN(undefined);// => true
_.isNaN(undefined);// => false```---
<!-- /div --><!-- div --><h3 id="_isnativevalue"><code>_.isNative(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11951 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isnative "See the npm package") [&#x24C9;][1]
Checks if `value` is a pristine native function.<br><br>**Note:** This method can't reliably detect native functions in the presenceof the core-js package because core-js circumvents this kind of detection.Despite multiple requests, the core-js maintainer has made it clear: anyattempt to fix the detection will be obstructed. As a result, we're leftwith little choice but to throw an error. Unfortunately, this also affectspackages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),which rely on core-js.
#### Since3.0.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a native function, else `false`.
#### Example```js_.isNative(Array.prototype.push);// => true
_.isNative(_);// => false```---
<!-- /div --><!-- div --><h3 id="_isnilvalue"><code>_.isNil(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11999 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isnil "See the npm package") [&#x24C9;][1]
Checks if `value` is `null` or `undefined`.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is nullish, else `false`.
#### Example```js_.isNil(null);// => true
_.isNil(void 0);// => true
_.isNil(NaN);// => false```---
<!-- /div --><!-- div --><h3 id="_isnullvalue"><code>_.isNull(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11975 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isnull "See the npm package") [&#x24C9;][1]
Checks if `value` is `null`.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is `null`, else `false`.
#### Example```js_.isNull(null);// => true
_.isNull(void 0);// => false```---
<!-- /div --><!-- div --><h3 id="_isnumbervalue"><code>_.isNumber(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12029 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isnumber "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a `Number` primitive or object.<br><br>**Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which areclassified as numbers, use the `_.isFinite` method.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a number, else `false`.
#### Example```js_.isNumber(3);// => true
_.isNumber(Number.MIN_VALUE);// => true
_.isNumber(Infinity);// => true
_.isNumber('3');// => false```---
<!-- /div --><!-- div --><h3 id="_isobjectvalue"><code>_.isObject(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11769 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isobject "See the npm package") [&#x24C9;][1]
Checks if `value` is the[language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)of `Object`. *(e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)*
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is an object, else `false`.
#### Example```js_.isObject({});// => true
_.isObject([1, 2, 3]);// => true
_.isObject(_.noop);// => true
_.isObject(null);// => false```---
<!-- /div --><!-- div --><h3 id="_isobjectlikevalue"><code>_.isObjectLike(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L11798 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isobjectlike "See the npm package") [&#x24C9;][1]
Checks if `value` is object-like. A value is object-like if it's not `null`and has a `typeof` result of "object".
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is object-like, else `false`.
#### Example```js_.isObjectLike({});// => true
_.isObjectLike([1, 2, 3]);// => true
_.isObjectLike(_.noop);// => false
_.isObjectLike(null);// => false```---
<!-- /div --><!-- div --><h3 id="_isplainobjectvalue"><code>_.isPlainObject(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12062 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isplainobject "See the npm package") [&#x24C9;][1]
Checks if `value` is a plain object, that is, an object created by the`Object` constructor or one with a `[[Prototype]]` of `null`.
#### Since0.8.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a plain object, else `false`.
#### Example```jsfunction Foo() { this.a = 1;}
_.isPlainObject(new Foo);// => false
_.isPlainObject([1, 2, 3]);// => false
_.isPlainObject({ 'x': 0, 'y': 0 });// => true
_.isPlainObject(Object.create(null));// => true```---
<!-- /div --><!-- div --><h3 id="_isregexpvalue"><code>_.isRegExp(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12092 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isregexp "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a `RegExp` object.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a regexp, else `false`.
#### Example```js_.isRegExp(/abc/);// => true
_.isRegExp('/abc/');// => false```---
<!-- /div --><!-- div --><h3 id="_issafeintegervalue"><code>_.isSafeInteger(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12121 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.issafeinteger "See the npm package") [&#x24C9;][1]
Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754double precision number which isn't the result of a rounded unsafe integer.<br><br>**Note:** This method is based on[`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a safe integer, else `false`.
#### Example```js_.isSafeInteger(3);// => true
_.isSafeInteger(Number.MIN_VALUE);// => false
_.isSafeInteger(Infinity);// => false
_.isSafeInteger('3');// => false```---
<!-- /div --><!-- div --><h3 id="_issetvalue"><code>_.isSet(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12142 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isset "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a `Set` object.
#### Since4.3.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a set, else `false`.
#### Example```js_.isSet(new Set);// => true
_.isSet(new WeakSet);// => false```---
<!-- /div --><!-- div --><h3 id="_isstringvalue"><code>_.isString(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12161 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isstring "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a `String` primitive or object.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a string, else `false`.
#### Example```js_.isString('abc');// => true
_.isString(1);// => false```---
<!-- /div --><!-- div --><h3 id="_issymbolvalue"><code>_.isSymbol(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12183 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.issymbol "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a `Symbol` primitive or object.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a symbol, else `false`.
#### Example```js_.isSymbol(Symbol.iterator);// => true
_.isSymbol('abc');// => false```---
<!-- /div --><!-- div --><h3 id="_istypedarrayvalue"><code>_.isTypedArray(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12205 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.istypedarray "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a typed array.
#### Since3.0.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a typed array, else `false`.
#### Example```js_.isTypedArray(new Uint8Array);// => true
_.isTypedArray([]);// => false```---
<!-- /div --><!-- div --><h3 id="_isundefinedvalue"><code>_.isUndefined(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12224 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isundefined "See the npm package") [&#x24C9;][1]
Checks if `value` is `undefined`.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is `undefined`, else `false`.
#### Example```js_.isUndefined(void 0);// => true
_.isUndefined(null);// => false```---
<!-- /div --><!-- div --><h3 id="_isweakmapvalue"><code>_.isWeakMap(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12245 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isweakmap "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a `WeakMap` object.
#### Since4.3.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a weak map, else `false`.
#### Example```js_.isWeakMap(new WeakMap);// => true
_.isWeakMap(new Map);// => false```---
<!-- /div --><!-- div --><h3 id="_isweaksetvalue"><code>_.isWeakSet(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12266 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.isweakset "See the npm package") [&#x24C9;][1]
Checks if `value` is classified as a `WeakSet` object.
#### Since4.3.0
#### Arguments1. `value` *(&#42;)*: The value to check.
#### Returns*(boolean)*: Returns `true` if `value` is a weak set, else `false`.
#### Example```js_.isWeakSet(new WeakSet);// => true
_.isWeakSet(new Set);// => false```---
<!-- /div --><!-- div --><h3 id="_ltvalue-other"><code>_.lt(value, other)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12293 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.lt "See the npm package") [&#x24C9;][1]
Checks if `value` is less than `other`.
#### Since3.9.0
#### Arguments1. `value` *(&#42;)*: The value to compare.2. `other` *(&#42;)*: The other value to compare.
#### Returns*(boolean)*: Returns `true` if `value` is less than `other`, else `false`.
#### Example```js_.lt(1, 3);// => true
_.lt(3, 3);// => false
_.lt(3, 1);// => false```---
<!-- /div --><!-- div --><h3 id="_ltevalue-other"><code>_.lte(value, other)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12318 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.lte "See the npm package") [&#x24C9;][1]
Checks if `value` is less than or equal to `other`.
#### Since3.9.0
#### Arguments1. `value` *(&#42;)*: The value to compare.2. `other` *(&#42;)*: The other value to compare.
#### Returns*(boolean)*: Returns `true` if `value` is less than or equal to `other`, else `false`.
#### Example```js_.lte(1, 3);// => true
_.lte(3, 3);// => true
_.lte(3, 1);// => false```---
<!-- /div --><!-- div --><h3 id="_toarrayvalue"><code>_.toArray(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12345 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.toarray "See the npm package") [&#x24C9;][1]
Converts `value` to an array.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to convert.
#### Returns*(Array)*: Returns the converted array.
#### Example```js_.toArray({ 'a': 1, 'b': 2 });// => [1, 2]
_.toArray('abc');// => ['a', 'b', 'c']
_.toArray(1);// => []
_.toArray(null);// => []```---
<!-- /div --><!-- div --><h3 id="_tofinitevalue"><code>_.toFinite(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12384 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.tofinite "See the npm package") [&#x24C9;][1]
Converts `value` to a finite number.
#### Since4.12.0
#### Arguments1. `value` *(&#42;)*: The value to convert.
#### Returns*(number)*: Returns the converted number.
#### Example```js_.toFinite(3.2);// => 3.2
_.toFinite(Number.MIN_VALUE);// => 5e-324
_.toFinite(Infinity);// => 1.7976931348623157e+308
_.toFinite('3.2');// => 3.2```---
<!-- /div --><!-- div --><h3 id="_tointegervalue"><code>_.toInteger(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12422 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.tointeger "See the npm package") [&#x24C9;][1]
Converts `value` to an integer.<br><br>**Note:** This method is loosely based on[`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to convert.
#### Returns*(number)*: Returns the converted integer.
#### Example```js_.toInteger(3.2);// => 3
_.toInteger(Number.MIN_VALUE);// => 0
_.toInteger(Infinity);// => 1.7976931348623157e+308
_.toInteger('3.2');// => 3```---
<!-- /div --><!-- div --><h3 id="_tolengthvalue"><code>_.toLength(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12456 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.tolength "See the npm package") [&#x24C9;][1]
Converts `value` to an integer suitable for use as the length of anarray-like object.<br><br>**Note:** This method is based on[`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to convert.
#### Returns*(number)*: Returns the converted integer.
#### Example```js_.toLength(3.2);// => 3
_.toLength(Number.MIN_VALUE);// => 0
_.toLength(Infinity);// => 4294967295
_.toLength('3.2');// => 3```---
<!-- /div --><!-- div --><h3 id="_tonumbervalue"><code>_.toNumber(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12483 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.tonumber "See the npm package") [&#x24C9;][1]
Converts `value` to a number.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to process.
#### Returns*(number)*: Returns the number.
#### Example```js_.toNumber(3.2);// => 3.2
_.toNumber(Number.MIN_VALUE);// => 5e-324
_.toNumber(Infinity);// => Infinity
_.toNumber('3.2');// => 3.2```---
<!-- /div --><!-- div --><h3 id="_toplainobjectvalue"><code>_.toPlainObject(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12528 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.toplainobject "See the npm package") [&#x24C9;][1]
Converts `value` to a plain object flattening inherited enumerable stringkeyed properties of `value` to own properties of the plain object.
#### Since3.0.0
#### Arguments1. `value` *(&#42;)*: The value to convert.
#### Returns*(Object)*: Returns the converted plain object.
#### Example```jsfunction Foo() { this.b = 2;}
Foo.prototype.c = 3;
_.assign({ 'a': 1 }, new Foo);// => { 'a': 1, 'b': 2 }
_.assign({ 'a': 1 }, _.toPlainObject(new Foo));// => { 'a': 1, 'b': 2, 'c': 3 }```---
<!-- /div --><!-- div --><h3 id="_tosafeintegervalue"><code>_.toSafeInteger(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12556 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.tosafeinteger "See the npm package") [&#x24C9;][1]
Converts `value` to a safe integer. A safe integer can be compared andrepresented correctly.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to convert.
#### Returns*(number)*: Returns the converted integer.
#### Example```js_.toSafeInteger(3.2);// => 3
_.toSafeInteger(Number.MIN_VALUE);// => 0
_.toSafeInteger(Infinity);// => 9007199254740991
_.toSafeInteger('3.2');// => 3```---
<!-- /div --><!-- div --><h3 id="_tostringvalue"><code>_.toString(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12583 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.tostring "See the npm package") [&#x24C9;][1]
Converts `value` to a string. An empty string is returned for `null`and `undefined` values. The sign of `-0` is preserved.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to convert.
#### Returns*(string)*: Returns the converted string.
#### Example```js_.toString(null);// => ''
_.toString(-0);// => '-0'
_.toString([1, 2, 3]);// => '1,2,3'```---
<!-- /div --><!-- /div --><!-- div -->## `“Math” Methods`
<!-- div --><h3 id="_addaugend-addend"><code>_.add(augend, addend)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16241 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.add "See the npm package") [&#x24C9;][1]
Adds two numbers.
#### Since3.4.0
#### Arguments1. `augend` *(number)*: The first number in an addition.2. `addend` *(number)*: The second number in an addition.
#### Returns*(number)*: Returns the total.
#### Example```js_.add(6, 4);// => 10```---
<!-- /div --><!-- div --><h3 id="_ceilnumber-precision0"><code>_.ceil(number, [precision=0])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16266 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.ceil "See the npm package") [&#x24C9;][1]
Computes `number` rounded up to `precision`.
#### Since3.10.0
#### Arguments1. `number` *(number)*: The number to round up.2. `[precision=0]` *(number)*: The precision to round up to.
#### Returns*(number)*: Returns the rounded up number.
#### Example```js_.ceil(4.006);// => 5
_.ceil(6.004, 2);// => 6.01
_.ceil(6040, -2);// => 6100```---
<!-- /div --><!-- div --><h3 id="_dividedividend-divisor"><code>_.divide(dividend, divisor)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16283 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.divide "See the npm package") [&#x24C9;][1]
Divide two numbers.
#### Since4.7.0
#### Arguments1. `dividend` *(number)*: The first number in a division.2. `divisor` *(number)*: The second number in a division.
#### Returns*(number)*: Returns the quotient.
#### Example```js_.divide(6, 4);// => 1.5```---
<!-- /div --><!-- div --><h3 id="_floornumber-precision0"><code>_.floor(number, [precision=0])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16308 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.floor "See the npm package") [&#x24C9;][1]
Computes `number` rounded down to `precision`.
#### Since3.10.0
#### Arguments1. `number` *(number)*: The number to round down.2. `[precision=0]` *(number)*: The precision to round down to.
#### Returns*(number)*: Returns the rounded down number.
#### Example```js_.floor(4.006);// => 4
_.floor(0.046, 2);// => 0.04
_.floor(4060, -2);// => 4000```---
<!-- /div --><!-- div --><h3 id="_maxarray"><code>_.max(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16328 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.max "See the npm package") [&#x24C9;][1]
Computes the maximum value of `array`. If `array` is empty or falsey,`undefined` is returned.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to iterate over.
#### Returns*(&#42;)*: Returns the maximum value.
#### Example```js_.max([4, 2, 8, 6]);// => 8
_.max([]);// => undefined```---
<!-- /div --><!-- div --><h3 id="_maxbyarray-iteratee_identity"><code>_.maxBy(array, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16357 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.maxby "See the npm package") [&#x24C9;][1]
This method is like `_.max` except that it accepts `iteratee` which isinvoked for each element in `array` to generate the criterion by whichthe value is ranked. The iteratee is invoked with one argument: *(value)*.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to iterate over.2. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(&#42;)*: Returns the maximum value.
#### Example```jsvar objects = [{ 'n': 1 }, { 'n': 2 }];
_.maxBy(objects, function(o) { return o.n; });// => { 'n': 2 }
// The `_.property` iteratee shorthand._.maxBy(objects, 'n');// => { 'n': 2 }```---
<!-- /div --><!-- div --><h3 id="_meanarray"><code>_.mean(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16377 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.mean "See the npm package") [&#x24C9;][1]
Computes the mean of the values in `array`.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to iterate over.
#### Returns*(number)*: Returns the mean.
#### Example```js_.mean([4, 2, 8, 6]);// => 5```---
<!-- /div --><!-- div --><h3 id="_meanbyarray-iteratee_identity"><code>_.meanBy(array, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16404 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.meanby "See the npm package") [&#x24C9;][1]
This method is like `_.mean` except that it accepts `iteratee` which isinvoked for each element in `array` to generate the value to be averaged.The iteratee is invoked with one argument: *(value)*.
#### Since4.7.0
#### Arguments1. `array` *(Array)*: The array to iterate over.2. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(number)*: Returns the mean.
#### Example```jsvar objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
_.meanBy(objects, function(o) { return o.n; });// => 5
// The `_.property` iteratee shorthand._.meanBy(objects, 'n');// => 5```---
<!-- /div --><!-- div --><h3 id="_minarray"><code>_.min(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16426 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.min "See the npm package") [&#x24C9;][1]
Computes the minimum value of `array`. If `array` is empty or falsey,`undefined` is returned.
#### Since0.1.0
#### Arguments1. `array` *(Array)*: The array to iterate over.
#### Returns*(&#42;)*: Returns the minimum value.
#### Example```js_.min([4, 2, 8, 6]);// => 2
_.min([]);// => undefined```---
<!-- /div --><!-- div --><h3 id="_minbyarray-iteratee_identity"><code>_.minBy(array, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16455 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.minby "See the npm package") [&#x24C9;][1]
This method is like `_.min` except that it accepts `iteratee` which isinvoked for each element in `array` to generate the criterion by whichthe value is ranked. The iteratee is invoked with one argument: *(value)*.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to iterate over.2. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(&#42;)*: Returns the minimum value.
#### Example```jsvar objects = [{ 'n': 1 }, { 'n': 2 }];
_.minBy(objects, function(o) { return o.n; });// => { 'n': 1 }
// The `_.property` iteratee shorthand._.minBy(objects, 'n');// => { 'n': 1 }```---
<!-- /div --><!-- div --><h3 id="_multiplymultiplier-multiplicand"><code>_.multiply(multiplier, multiplicand)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16476 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.multiply "See the npm package") [&#x24C9;][1]
Multiply two numbers.
#### Since4.7.0
#### Arguments1. `multiplier` *(number)*: The first number in a multiplication.2. `multiplicand` *(number)*: The second number in a multiplication.
#### Returns*(number)*: Returns the product.
#### Example```js_.multiply(6, 4);// => 24```---
<!-- /div --><!-- div --><h3 id="_roundnumber-precision0"><code>_.round(number, [precision=0])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16501 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.round "See the npm package") [&#x24C9;][1]
Computes `number` rounded to `precision`.
#### Since3.10.0
#### Arguments1. `number` *(number)*: The number to round.2. `[precision=0]` *(number)*: The precision to round to.
#### Returns*(number)*: Returns the rounded number.
#### Example```js_.round(4.006);// => 4
_.round(4.006, 2);// => 4.01
_.round(4060, -2);// => 4100```---
<!-- /div --><!-- div --><h3 id="_subtractminuend-subtrahend"><code>_.subtract(minuend, subtrahend)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16518 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.subtract "See the npm package") [&#x24C9;][1]
Subtract two numbers.
#### Since4.0.0
#### Arguments1. `minuend` *(number)*: The first number in a subtraction.2. `subtrahend` *(number)*: The second number in a subtraction.
#### Returns*(number)*: Returns the difference.
#### Example```js_.subtract(6, 4);// => 2```---
<!-- /div --><!-- div --><h3 id="_sumarray"><code>_.sum(array)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16536 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sum "See the npm package") [&#x24C9;][1]
Computes the sum of the values in `array`.
#### Since3.4.0
#### Arguments1. `array` *(Array)*: The array to iterate over.
#### Returns*(number)*: Returns the sum.
#### Example```js_.sum([4, 2, 8, 6]);// => 20```---
<!-- /div --><!-- div --><h3 id="_sumbyarray-iteratee_identity"><code>_.sumBy(array, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16565 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.sumby "See the npm package") [&#x24C9;][1]
This method is like `_.sum` except that it accepts `iteratee` which isinvoked for each element in `array` to generate the value to be summed.The iteratee is invoked with one argument: *(value)*.
#### Since4.0.0
#### Arguments1. `array` *(Array)*: The array to iterate over.2. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(number)*: Returns the sum.
#### Example```jsvar objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
_.sumBy(objects, function(o) { return o.n; });// => 20
// The `_.property` iteratee shorthand._.sumBy(objects, 'n');// => 20```---
<!-- /div --><!-- /div --><!-- div -->## `“Number” Methods`
<!-- div --><h3 id="_clampnumber-lower-upper"><code>_.clamp(number, [lower], upper)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14007 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.clamp "See the npm package") [&#x24C9;][1]
Clamps `number` within the inclusive `lower` and `upper` bounds.
#### Since4.0.0
#### Arguments1. `number` *(number)*: The number to clamp.2. `[lower]` *(number)*: The lower bound.3. `upper` *(number)*: The upper bound.
#### Returns*(number)*: Returns the clamped number.
#### Example```js_.clamp(-10, -5, 5);// => -5
_.clamp(10, -5, 5);// => 5```---
<!-- /div --><!-- div --><h3 id="_inrangenumber-start0-end"><code>_.inRange(number, [start=0], end)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14061 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.inrange "See the npm package") [&#x24C9;][1]
Checks if `n` is between `start` and up to, but not including, `end`. If`end` is not specified, it's set to `start` with `start` then set to `0`.If `start` is greater than `end` the params are swapped to supportnegative ranges.
#### Since3.3.0
#### Arguments1. `number` *(number)*: The number to check.2. `[start=0]` *(number)*: The start of the range.3. `end` *(number)*: The end of the range.
#### Returns*(boolean)*: Returns `true` if `number` is in the range, else `false`.
#### Example```js_.inRange(3, 2, 4);// => true
_.inRange(4, 8);// => true
_.inRange(4, 2);// => false
_.inRange(2, 2);// => false
_.inRange(1.2, 2);// => true
_.inRange(5.2, 4);// => false
_.inRange(-3, -2, -6);// => true```---
<!-- /div --><!-- div --><h3 id="_randomlower0-upper1-floating"><code>_.random([lower=0], [upper=1], [floating])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14104 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.random "See the npm package") [&#x24C9;][1]
Produces a random number between the inclusive `lower` and `upper` bounds.If only one argument is provided a number between `0` and the given numberis returned. If `floating` is `true`, or either `lower` or `upper` arefloats, a floating-point number is returned instead of an integer.<br><br>**Note:** JavaScript follows the IEEE-754 standard for resolvingfloating-point values which can produce unexpected results.
#### Since0.7.0
#### Arguments1. `[lower=0]` *(number)*: The lower bound.2. `[upper=1]` *(number)*: The upper bound.3. `[floating]` *(boolean)*: Specify returning a floating-point number.
#### Returns*(number)*: Returns the random number.
#### Example```js_.random(0, 5);// => an integer between 0 and 5
_.random(5);// => also an integer between 0 and 5
_.random(5, true);// => a floating-point number between 0 and 5
_.random(1.2, 5.2);// => a floating-point number between 1.2 and 5.2```---
<!-- /div --><!-- /div --><!-- div -->## `“Object” Methods`
<!-- div --><h3 id="_assignobject-sources"><code>_.assign(object, [sources])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12621 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.assign "See the npm package") [&#x24C9;][1]
Assigns own enumerable string keyed properties of source objects to thedestination object. Source objects are applied from left to right.Subsequent sources overwrite property assignments of previous sources.<br><br>**Note:** This method mutates `object` and is loosely based on[`Object.assign`](https://mdn.io/Object/assign).
#### Since0.10.0
#### Arguments1. `object` *(Object)*: The destination object.2. `[sources]` *(...Object)*: The source objects.
#### Returns*(Object)*: Returns `object`.
#### Example```jsfunction Foo() { this.a = 1;}
function Bar() { this.c = 3;}
Foo.prototype.b = 2;Bar.prototype.d = 4;
_.assign({ 'a': 0 }, new Foo, new Bar);// => { 'a': 1, 'c': 3 }```---
<!-- /div --><!-- div --><h3 id="_assigninobject-sources"><code>_.assignIn(object, [sources])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12664 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.assignin "See the npm package") [&#x24C9;][1]
This method is like `_.assign` except that it iterates over own andinherited source properties.<br><br>**Note:** This method mutates `object`.
#### Since4.0.0
#### Aliases*_.extend*
#### Arguments1. `object` *(Object)*: The destination object.2. `[sources]` *(...Object)*: The source objects.
#### Returns*(Object)*: Returns `object`.
#### Example```jsfunction Foo() { this.a = 1;}
function Bar() { this.c = 3;}
Foo.prototype.b = 2;Bar.prototype.d = 4;
_.assignIn({ 'a': 0 }, new Foo, new Bar);// => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }```---
<!-- /div --><!-- div --><h3 id="_assigninwithobject-sources-customizer"><code>_.assignInWith(object, sources, [customizer])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12697 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.assigninwith "See the npm package") [&#x24C9;][1]
This method is like `_.assignIn` except that it accepts `customizer`which is invoked to produce the assigned values. If `customizer` returns`undefined`, assignment is handled by the method instead. The `customizer`is invoked with five arguments: *(objValue, srcValue, key, object, source)*.<br><br>**Note:** This method mutates `object`.
#### Since4.0.0
#### Aliases*_.extendWith*
#### Arguments1. `object` *(Object)*: The destination object.2. `sources` *(...Object)*: The source objects.3. `[customizer]` *(Function)*: The function to customize assigned values.
#### Returns*(Object)*: Returns `object`.
#### Example```jsfunction customizer(objValue, srcValue) { return _.isUndefined(objValue) ? srcValue : objValue;}
var defaults = _.partialRight(_.assignInWith, customizer);
defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });// => { 'a': 1, 'b': 2 }```---
<!-- /div --><!-- div --><h3 id="_assignwithobject-sources-customizer"><code>_.assignWith(object, sources, [customizer])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12729 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.assignwith "See the npm package") [&#x24C9;][1]
This method is like `_.assign` except that it accepts `customizer`which is invoked to produce the assigned values. If `customizer` returns`undefined`, assignment is handled by the method instead. The `customizer`is invoked with five arguments: *(objValue, srcValue, key, object, source)*.<br><br>**Note:** This method mutates `object`.
#### Since4.0.0
#### Arguments1. `object` *(Object)*: The destination object.2. `sources` *(...Object)*: The source objects.3. `[customizer]` *(Function)*: The function to customize assigned values.
#### Returns*(Object)*: Returns `object`.
#### Example```jsfunction customizer(objValue, srcValue) { return _.isUndefined(objValue) ? srcValue : objValue;}
var defaults = _.partialRight(_.assignWith, customizer);
defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });// => { 'a': 1, 'b': 2 }```---
<!-- /div --><!-- div --><h3 id="_atobject-paths"><code>_.at(object, [paths])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12750 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.at "See the npm package") [&#x24C9;][1]
Creates an array of values corresponding to `paths` of `object`.
#### Since1.0.0
#### Arguments1. `object` *(Object)*: The object to iterate over.2. `[paths]` *(...(string|string&#91;&#93;))*: The property paths to pick.
#### Returns*(Array)*: Returns the picked values.
#### Example```jsvar object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
_.at(object, ['a[0].b.c', 'a[1]']);// => [3, 4]```---
<!-- /div --><!-- div --><h3 id="_createprototype-properties"><code>_.create(prototype, [properties])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12786 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.create "See the npm package") [&#x24C9;][1]
Creates an object that inherits from the `prototype` object. If a`properties` object is given, its own enumerable string keyed propertiesare assigned to the created object.
#### Since2.3.0
#### Arguments1. `prototype` *(Object)*: The object to inherit from.2. `[properties]` *(Object)*: The properties to assign to the object.
#### Returns*(Object)*: Returns the new object.
#### Example```jsfunction Shape() { this.x = 0; this.y = 0;}
function Circle() { Shape.call(this);}
Circle.prototype = _.create(Shape.prototype, { 'constructor': Circle});
var circle = new Circle;circle instanceof Circle;// => true
circle instanceof Shape;// => true```---
<!-- /div --><!-- div --><h3 id="_defaultsobject-sources"><code>_.defaults(object, [sources])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12812 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.defaults "See the npm package") [&#x24C9;][1]
Assigns own and inherited enumerable string keyed properties of sourceobjects to the destination object for all destination properties thatresolve to `undefined`. Source objects are applied from left to right.Once a property is set, additional values of the same property are ignored.<br><br>**Note:** This method mutates `object`.
#### Since0.1.0
#### Arguments1. `object` *(Object)*: The destination object.2. `[sources]` *(...Object)*: The source objects.
#### Returns*(Object)*: Returns `object`.
#### Example```js_.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });// => { 'a': 1, 'b': 2 }```---
<!-- /div --><!-- div --><h3 id="_defaultsdeepobject-sources"><code>_.defaultsDeep(object, [sources])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12862 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.defaultsdeep "See the npm package") [&#x24C9;][1]
This method is like `_.defaults` except that it recursively assignsdefault properties.<br><br>**Note:** This method mutates `object`.
#### Since3.10.0
#### Arguments1. `object` *(Object)*: The destination object.2. `[sources]` *(...Object)*: The source objects.
#### Returns*(Object)*: Returns `object`.
#### Example```js_.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });// => { 'a': { 'b': 2, 'c': 3 } }```---
<!-- /div --><!-- div --><h3 id="_findkeyobject-predicate_identity"><code>_.findKey(object, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12902 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.findkey "See the npm package") [&#x24C9;][1]
This method is like `_.find` except that it returns the key of the firstelement `predicate` returns truthy for instead of the element itself.
#### Since1.1.0
#### Arguments1. `object` *(Object)*: The object to inspect.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(&#42;)*: Returns the key of the matched element, else `undefined`.
#### Example```jsvar users = { 'barney': { 'age': 36, 'active': true }, 'fred': { 'age': 40, 'active': false }, 'pebbles': { 'age': 1, 'active': true }};
_.findKey(users, function(o) { return o.age < 40; });// => 'barney' (iteration order is not guaranteed)
// The `_.matches` iteratee shorthand._.findKey(users, { 'age': 1, 'active': true });// => 'pebbles'
// The `_.matchesProperty` iteratee shorthand._.findKey(users, ['active', false]);// => 'fred'
// The `_.property` iteratee shorthand._.findKey(users, 'active');// => 'barney'```---
<!-- /div --><!-- div --><h3 id="_findlastkeyobject-predicate_identity"><code>_.findLastKey(object, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12941 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.findlastkey "See the npm package") [&#x24C9;][1]
This method is like `_.findKey` except that it iterates over elements ofa collection in the opposite order.
#### Since2.0.0
#### Arguments1. `object` *(Object)*: The object to inspect.2. `[predicate=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(&#42;)*: Returns the key of the matched element, else `undefined`.
#### Example```jsvar users = { 'barney': { 'age': 36, 'active': true }, 'fred': { 'age': 40, 'active': false }, 'pebbles': { 'age': 1, 'active': true }};
_.findLastKey(users, function(o) { return o.age < 40; });// => returns 'pebbles' assuming `_.findKey` returns 'barney'
// The `_.matches` iteratee shorthand._.findLastKey(users, { 'age': 36, 'active': true });// => 'barney'
// The `_.matchesProperty` iteratee shorthand._.findLastKey(users, ['active', false]);// => 'fred'
// The `_.property` iteratee shorthand._.findLastKey(users, 'active');// => 'pebbles'```---
<!-- /div --><!-- div --><h3 id="_forinobject-iteratee_identity"><code>_.forIn(object, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L12973 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.forin "See the npm package") [&#x24C9;][1]
Iterates over own and inherited enumerable string keyed properties of anobject and invokes `iteratee` for each property. The iteratee is invokedwith three arguments: *(value, key, object)*. Iteratee functions may exititeration early by explicitly returning `false`.
#### Since0.3.0
#### Arguments1. `object` *(Object)*: The object to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Object)*: Returns `object`.
#### Example```jsfunction Foo() { this.a = 1; this.b = 2;}
Foo.prototype.c = 3;
_.forIn(new Foo, function(value, key) { console.log(key);});// => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).```---
<!-- /div --><!-- div --><h3 id="_forinrightobject-iteratee_identity"><code>_.forInRight(object, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13005 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.forinright "See the npm package") [&#x24C9;][1]
This method is like `_.forIn` except that it iterates over properties of`object` in the opposite order.
#### Since2.0.0
#### Arguments1. `object` *(Object)*: The object to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Object)*: Returns `object`.
#### Example```jsfunction Foo() { this.a = 1; this.b = 2;}
Foo.prototype.c = 3;
_.forInRight(new Foo, function(value, key) { console.log(key);});// => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.```---
<!-- /div --><!-- div --><h3 id="_forownobject-iteratee_identity"><code>_.forOwn(object, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13039 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.forown "See the npm package") [&#x24C9;][1]
Iterates over own enumerable string keyed properties of an object andinvokes `iteratee` for each property. The iteratee is invoked with threearguments: *(value, key, object)*. Iteratee functions may exit iterationearly by explicitly returning `false`.
#### Since0.3.0
#### Arguments1. `object` *(Object)*: The object to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Object)*: Returns `object`.
#### Example```jsfunction Foo() { this.a = 1; this.b = 2;}
Foo.prototype.c = 3;
_.forOwn(new Foo, function(value, key) { console.log(key);});// => Logs 'a' then 'b' (iteration order is not guaranteed).```---
<!-- /div --><!-- div --><h3 id="_forownrightobject-iteratee_identity"><code>_.forOwnRight(object, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13069 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.forownright "See the npm package") [&#x24C9;][1]
This method is like `_.forOwn` except that it iterates over properties of`object` in the opposite order.
#### Since2.0.0
#### Arguments1. `object` *(Object)*: The object to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Object)*: Returns `object`.
#### Example```jsfunction Foo() { this.a = 1; this.b = 2;}
Foo.prototype.c = 3;
_.forOwnRight(new Foo, function(value, key) { console.log(key);});// => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.```---
<!-- /div --><!-- div --><h3 id="_functionsobject"><code>_.functions(object)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13096 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.functions "See the npm package") [&#x24C9;][1]
Creates an array of function property names from own enumerable propertiesof `object`.
#### Since0.1.0
#### Arguments1. `object` *(Object)*: The object to inspect.
#### Returns*(Array)*: Returns the function names.
#### Example```jsfunction Foo() { this.a = _.constant('a'); this.b = _.constant('b');}
Foo.prototype.c = _.constant('c');
_.functions(new Foo);// => ['a', 'b']```---
<!-- /div --><!-- div --><h3 id="_functionsinobject"><code>_.functionsIn(object)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13123 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.functionsin "See the npm package") [&#x24C9;][1]
Creates an array of function property names from own and inheritedenumerable properties of `object`.
#### Since4.0.0
#### Arguments1. `object` *(Object)*: The object to inspect.
#### Returns*(Array)*: Returns the function names.
#### Example```jsfunction Foo() { this.a = _.constant('a'); this.b = _.constant('b');}
Foo.prototype.c = _.constant('c');
_.functionsIn(new Foo);// => ['a', 'b', 'c']```---
<!-- /div --><!-- div --><h3 id="_getobject-path-defaultvalue"><code>_.get(object, path, [defaultValue])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13152 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.get "See the npm package") [&#x24C9;][1]
Gets the value at `path` of `object`. If the resolved value is`undefined`, the `defaultValue` is returned in its place.
#### Since3.7.0
#### Arguments1. `object` *(Object)*: The object to query.2. `path` *(Array|string)*: The path of the property to get.3. `[defaultValue]` *(&#42;)*: The value returned for `undefined` resolved values.
#### Returns*(&#42;)*: Returns the resolved value.
#### Example```jsvar object = { 'a': [{ 'b': { 'c': 3 } }] };
_.get(object, 'a[0].b.c');// => 3
_.get(object, ['a', '0', 'b', 'c']);// => 3
_.get(object, 'a.b.c', 'default');// => 'default'```---
<!-- /div --><!-- div --><h3 id="_hasobject-path"><code>_.has(object, path)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13184 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.has "See the npm package") [&#x24C9;][1]
Checks if `path` is a direct property of `object`.
#### Since0.1.0
#### Arguments1. `object` *(Object)*: The object to query.2. `path` *(Array|string)*: The path to check.
#### Returns*(boolean)*: Returns `true` if `path` exists, else `false`.
#### Example```jsvar object = { 'a': { 'b': 2 } };var other = _.create({ 'a': _.create({ 'b': 2 }) });
_.has(object, 'a');// => true
_.has(object, 'a.b');// => true
_.has(object, ['a', 'b']);// => true
_.has(other, 'a');// => false```---
<!-- /div --><!-- div --><h3 id="_hasinobject-path"><code>_.hasIn(object, path)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13214 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.hasin "See the npm package") [&#x24C9;][1]
Checks if `path` is a direct or inherited property of `object`.
#### Since4.0.0
#### Arguments1. `object` *(Object)*: The object to query.2. `path` *(Array|string)*: The path to check.
#### Returns*(boolean)*: Returns `true` if `path` exists, else `false`.
#### Example```jsvar object = _.create({ 'a': _.create({ 'b': 2 }) });
_.hasIn(object, 'a');// => true
_.hasIn(object, 'a.b');// => true
_.hasIn(object, ['a', 'b']);// => true
_.hasIn(object, 'b');// => false```---
<!-- /div --><!-- div --><h3 id="_invertobject"><code>_.invert(object)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13236 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.invert "See the npm package") [&#x24C9;][1]
Creates an object composed of the inverted keys and values of `object`.If `object` contains duplicate values, subsequent values overwriteproperty assignments of previous values.
#### Since0.7.0
#### Arguments1. `object` *(Object)*: The object to invert.
#### Returns*(Object)*: Returns the new inverted object.
#### Example```jsvar object = { 'a': 1, 'b': 2, 'c': 1 };
_.invert(object);// => { '1': 'c', '2': 'b' }```---
<!-- /div --><!-- div --><h3 id="_invertbyobject-iteratee_identity"><code>_.invertBy(object, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13271 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.invertby "See the npm package") [&#x24C9;][1]
This method is like `_.invert` except that the inverted object is generatedfrom the results of running each element of `object` thru `iteratee`. Thecorresponding inverted value of each inverted key is an array of keysresponsible for generating the inverted value. The iteratee is invokedwith one argument: *(value)*.
#### Since4.1.0
#### Arguments1. `object` *(Object)*: The object to invert.2. `[iteratee=_.identity]` *(Function)*: The iteratee invoked per element.
#### Returns*(Object)*: Returns the new inverted object.
#### Example```jsvar object = { 'a': 1, 'b': 2, 'c': 1 };
_.invertBy(object);// => { '1': ['a', 'c'], '2': ['b'] }
_.invertBy(object, function(value) { return 'group' + value;});// => { 'group1': ['a', 'c'], 'group2': ['b'] }```---
<!-- /div --><!-- div --><h3 id="_invokeobject-path-args"><code>_.invoke(object, path, [args])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13302 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.invoke "See the npm package") [&#x24C9;][1]
Invokes the method at `path` of `object`.
#### Since4.0.0
#### Arguments1. `object` *(Object)*: The object to query.2. `path` *(Array|string)*: The path of the method to invoke.3. `[args]` *(...&#42;)*: The arguments to invoke the method with.
#### Returns*(&#42;)*: Returns the result of the invoked method.
#### Example```jsvar object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
_.invoke(object, 'a[0].b.c.slice', 1, 3);// => [2, 3]```---
<!-- /div --><!-- div --><h3 id="_keysobject"><code>_.keys(object)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13332 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.keys "See the npm package") [&#x24C9;][1]
Creates an array of the own enumerable property names of `object`.<br><br>**Note:** Non-object values are coerced to objects. See the[ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)for more details.
#### Since0.1.0
#### Arguments1. `object` *(Object)*: The object to query.
#### Returns*(Array)*: Returns the array of property names.
#### Example```jsfunction Foo() { this.a = 1; this.b = 2;}
Foo.prototype.c = 3;
_.keys(new Foo);// => ['a', 'b'] (iteration order is not guaranteed)
_.keys('hi');// => ['0', '1']```---
<!-- /div --><!-- div --><h3 id="_keysinobject"><code>_.keysIn(object)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13359 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.keysin "See the npm package") [&#x24C9;][1]
Creates an array of the own and inherited enumerable property names of `object`.<br><br>**Note:** Non-object values are coerced to objects.
#### Since3.0.0
#### Arguments1. `object` *(Object)*: The object to query.
#### Returns*(Array)*: Returns the array of property names.
#### Example```jsfunction Foo() { this.a = 1; this.b = 2;}
Foo.prototype.c = 3;
_.keysIn(new Foo);// => ['a', 'b', 'c'] (iteration order is not guaranteed)```---
<!-- /div --><!-- div --><h3 id="_mapkeysobject-iteratee_identity"><code>_.mapKeys(object, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13384 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.mapkeys "See the npm package") [&#x24C9;][1]
The opposite of `_.mapValues`; this method creates an object with thesame values as `object` and keys generated by running each own enumerablestring keyed property of `object` thru `iteratee`. The iteratee is invokedwith three arguments: *(value, key, object)*.
#### Since3.8.0
#### Arguments1. `object` *(Object)*: The object to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Object)*: Returns the new mapped object.
#### Example```js_.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) { return key + value;});// => { 'a1': 1, 'b2': 2 }```---
<!-- /div --><!-- div --><h3 id="_mapvaluesobject-iteratee_identity"><code>_.mapValues(object, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13422 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.mapvalues "See the npm package") [&#x24C9;][1]
Creates an object with the same keys as `object` and values generatedby running each own enumerable string keyed property of `object` thru`iteratee`. The iteratee is invoked with three arguments:<br>*(value, key, object)*.
#### Since2.4.0
#### Arguments1. `object` *(Object)*: The object to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Object)*: Returns the new mapped object.
#### Example```jsvar users = { 'fred': { 'user': 'fred', 'age': 40 }, 'pebbles': { 'user': 'pebbles', 'age': 1 }};
_.mapValues(users, function(o) { return o.age; });// => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
// The `_.property` iteratee shorthand._.mapValues(users, 'age');// => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)```---
<!-- /div --><!-- div --><h3 id="_mergeobject-sources"><code>_.merge(object, [sources])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13463 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.merge "See the npm package") [&#x24C9;][1]
This method is like `_.assign` except that it recursively merges own andinherited enumerable string keyed properties of source objects into thedestination object. Source properties that resolve to `undefined` areskipped if a destination value exists. Array and plain object propertiesare merged recursively. Other objects and value types are overridden byassignment. Source objects are applied from left to right. Subsequentsources overwrite property assignments of previous sources.<br><br>**Note:** This method mutates `object`.
#### Since0.5.0
#### Arguments1. `object` *(Object)*: The destination object.2. `[sources]` *(...Object)*: The source objects.
#### Returns*(Object)*: Returns `object`.
#### Example```jsvar object = { 'a': [{ 'b': 2 }, { 'd': 4 }]};
var other = { 'a': [{ 'c': 3 }, { 'e': 5 }]};
_.merge(object, other);// => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }```---
<!-- /div --><!-- div --><h3 id="_mergewithobject-sources-customizer"><code>_.mergeWith(object, sources, customizer)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13498 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.mergewith "See the npm package") [&#x24C9;][1]
This method is like `_.merge` except that it accepts `customizer` whichis invoked to produce the merged values of the destination and sourceproperties. If `customizer` returns `undefined`, merging is handled by themethod instead. The `customizer` is invoked with six arguments:<br>*(objValue, srcValue, key, object, source, stack)*.<br><br>**Note:** This method mutates `object`.
#### Since4.0.0
#### Arguments1. `object` *(Object)*: The destination object.2. `sources` *(...Object)*: The source objects.3. `customizer` *(Function)*: The function to customize assigned values.
#### Returns*(Object)*: Returns `object`.
#### Example```jsfunction customizer(objValue, srcValue) { if (_.isArray(objValue)) { return objValue.concat(srcValue); }}
var object = { 'a': [1], 'b': [2] };var other = { 'a': [3], 'b': [4] };
_.mergeWith(object, other, customizer);// => { 'a': [1, 3], 'b': [2, 4] }```---
<!-- /div --><!-- div --><h3 id="_omitobject-paths"><code>_.omit(object, [paths])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13522 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.omit "See the npm package") [&#x24C9;][1]
The opposite of `_.pick`; this method creates an object composed of theown and inherited enumerable property paths of `object` that are not omitted.<br><br>**Note:** This method is considerably slower than `_.pick`.
#### Since0.1.0
#### Arguments1. `object` *(Object)*: The source object.2. `[paths]` *(...(string|string&#91;&#93;))*: The property paths to omit.
#### Returns*(Object)*: Returns the new object.
#### Example```jsvar object = { 'a': 1, 'b': '2', 'c': 3 };
_.omit(object, ['a', 'c']);// => { 'b': '2' }```---
<!-- /div --><!-- div --><h3 id="_omitbyobject-predicate_identity"><code>_.omitBy(object, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13564 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.omitby "See the npm package") [&#x24C9;][1]
The opposite of `_.pickBy`; this method creates an object composed ofthe own and inherited enumerable string keyed properties of `object` that`predicate` doesn't return truthy for. The predicate is invoked with twoarguments: *(value, key)*.
#### Since4.0.0
#### Arguments1. `object` *(Object)*: The source object.2. `[predicate=_.identity]` *(Function)*: The function invoked per property.
#### Returns*(Object)*: Returns the new object.
#### Example```jsvar object = { 'a': 1, 'b': '2', 'c': 3 };
_.omitBy(object, _.isNumber);// => { 'b': '2' }```---
<!-- /div --><!-- div --><h3 id="_pickobject-paths"><code>_.pick(object, [paths])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13585 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.pick "See the npm package") [&#x24C9;][1]
Creates an object composed of the picked `object` properties.
#### Since0.1.0
#### Arguments1. `object` *(Object)*: The source object.2. `[paths]` *(...(string|string&#91;&#93;))*: The property paths to pick.
#### Returns*(Object)*: Returns the new object.
#### Example```jsvar object = { 'a': 1, 'b': '2', 'c': 3 };
_.pick(object, ['a', 'c']);// => { 'a': 1, 'c': 3 }```---
<!-- /div --><!-- div --><h3 id="_pickbyobject-predicate_identity"><code>_.pickBy(object, [predicate=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13607 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.pickby "See the npm package") [&#x24C9;][1]
Creates an object composed of the `object` properties `predicate` returnstruthy for. The predicate is invoked with two arguments: *(value, key)*.
#### Since4.0.0
#### Arguments1. `object` *(Object)*: The source object.2. `[predicate=_.identity]` *(Function)*: The function invoked per property.
#### Returns*(Object)*: Returns the new object.
#### Example```jsvar object = { 'a': 1, 'b': '2', 'c': 3 };
_.pickBy(object, _.isNumber);// => { 'a': 1, 'c': 3 }```---
<!-- /div --><!-- div --><h3 id="_resultobject-path-defaultvalue"><code>_.result(object, path, [defaultValue])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13649 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.result "See the npm package") [&#x24C9;][1]
This method is like `_.get` except that if the resolved value is afunction it's invoked with the `this` binding of its parent object andits result is returned.
#### Since0.1.0
#### Arguments1. `object` *(Object)*: The object to query.2. `path` *(Array|string)*: The path of the property to resolve.3. `[defaultValue]` *(&#42;)*: The value returned for `undefined` resolved values.
#### Returns*(&#42;)*: Returns the resolved value.
#### Example```jsvar object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
_.result(object, 'a[0].b.c1');// => 3
_.result(object, 'a[0].b.c2');// => 4
_.result(object, 'a[0].b.c3', 'default');// => 'default'
_.result(object, 'a[0].b.c3', _.constant('default'));// => 'default'```---
<!-- /div --><!-- div --><h3 id="_setobject-path-value"><code>_.set(object, path, value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13699 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.set "See the npm package") [&#x24C9;][1]
Sets the value at `path` of `object`. If a portion of `path` doesn't exist,it's created. Arrays are created for missing index properties while objectsare created for all other missing properties. Use `_.setWith` to customize`path` creation.<br><br>**Note:** This method mutates `object`.
#### Since3.7.0
#### Arguments1. `object` *(Object)*: The object to modify.2. `path` *(Array|string)*: The path of the property to set.3. `value` *(&#42;)*: The value to set.
#### Returns*(Object)*: Returns `object`.
#### Example```jsvar object = { 'a': [{ 'b': { 'c': 3 } }] };
_.set(object, 'a[0].b.c', 4);console.log(object.a[0].b.c);// => 4
_.set(object, ['x', '0', 'y', 'z'], 5);console.log(object.x[0].y.z);// => 5```---
<!-- /div --><!-- div --><h3 id="_setwithobject-path-value-customizer"><code>_.setWith(object, path, value, [customizer])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13727 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.setwith "See the npm package") [&#x24C9;][1]
This method is like `_.set` except that it accepts `customizer` which isinvoked to produce the objects of `path`. If `customizer` returns `undefined`path creation is handled by the method instead. The `customizer` is invokedwith three arguments: *(nsValue, key, nsObject)*.<br><br>**Note:** This method mutates `object`.
#### Since4.0.0
#### Arguments1. `object` *(Object)*: The object to modify.2. `path` *(Array|string)*: The path of the property to set.3. `value` *(&#42;)*: The value to set.4. `[customizer]` *(Function)*: The function to customize assigned values.
#### Returns*(Object)*: Returns `object`.
#### Example```jsvar object = {};
_.setWith(object, '[0][1]', 'a', Object);// => { '0': { '1': 'a' } }```---
<!-- /div --><!-- div --><h3 id="_topairsobject"><code>_.toPairs(object)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13756 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.topairs "See the npm package") [&#x24C9;][1]
Creates an array of own enumerable string keyed-value pairs for `object`which can be consumed by `_.fromPairs`. If `object` is a map or set, itsentries are returned.
#### Since4.0.0
#### Aliases*_.entries*
#### Arguments1. `object` *(Object)*: The object to query.
#### Returns*(Array)*: Returns the key-value pairs.
#### Example```jsfunction Foo() { this.a = 1; this.b = 2;}
Foo.prototype.c = 3;
_.toPairs(new Foo);// => [['a', 1], ['b', 2]] (iteration order is not guaranteed)```---
<!-- /div --><!-- div --><h3 id="_topairsinobject"><code>_.toPairsIn(object)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13782 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.topairsin "See the npm package") [&#x24C9;][1]
Creates an array of own and inherited enumerable string keyed-value pairsfor `object` which can be consumed by `_.fromPairs`. If `object` is a mapor set, its entries are returned.
#### Since4.0.0
#### Aliases*_.entriesIn*
#### Arguments1. `object` *(Object)*: The object to query.
#### Returns*(Array)*: Returns the key-value pairs.
#### Example```jsfunction Foo() { this.a = 1; this.b = 2;}
Foo.prototype.c = 3;
_.toPairsIn(new Foo);// => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)```---
<!-- /div --><!-- div --><h3 id="_transformobject-iteratee_identity-accumulator"><code>_.transform(object, [iteratee=_.identity], [accumulator])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13814 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.transform "See the npm package") [&#x24C9;][1]
An alternative to `_.reduce`; this method transforms `object` to a new`accumulator` object which is the result of running each of its ownenumerable string keyed properties thru `iteratee`, with each invocationpotentially mutating the `accumulator` object. If `accumulator` is notprovided, a new object with the same `[[Prototype]]` will be used. Theiteratee is invoked with four arguments: *(accumulator, value, key, object)*.Iteratee functions may exit iteration early by explicitly returning `false`.
#### Since1.3.0
#### Arguments1. `object` *(Object)*: The object to iterate over.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.3. `[accumulator]` *(&#42;)*: The custom accumulator value.
#### Returns*(&#42;)*: Returns the accumulated value.
#### Example```js_.transform([2, 3, 4], function(result, n) { result.push(n *= n); return n % 2 == 0;}, []);// => [4, 9]
_.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { (result[value] || (result[value] = [])).push(key);}, {});// => { '1': ['a', 'c'], '2': ['b'] }```---
<!-- /div --><!-- div --><h3 id="_unsetobject-path"><code>_.unset(object, path)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13864 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.unset "See the npm package") [&#x24C9;][1]
Removes the property at `path` of `object`.<br><br>**Note:** This method mutates `object`.
#### Since4.0.0
#### Arguments1. `object` *(Object)*: The object to modify.2. `path` *(Array|string)*: The path of the property to unset.
#### Returns*(boolean)*: Returns `true` if the property is deleted, else `false`.
#### Example```jsvar object = { 'a': [{ 'b': { 'c': 7 } }] };_.unset(object, 'a[0].b.c');// => true
console.log(object);// => { 'a': [{ 'b': {} }] };
_.unset(object, ['a', '0', 'b', 'c']);// => true
console.log(object);// => { 'a': [{ 'b': {} }] };```---
<!-- /div --><!-- div --><h3 id="_updateobject-path-updater"><code>_.update(object, path, updater)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13895 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.update "See the npm package") [&#x24C9;][1]
This method is like `_.set` except that accepts `updater` to produce thevalue to set. Use `_.updateWith` to customize `path` creation. The `updater`is invoked with one argument: *(value)*.<br><br>**Note:** This method mutates `object`.
#### Since4.6.0
#### Arguments1. `object` *(Object)*: The object to modify.2. `path` *(Array|string)*: The path of the property to set.3. `updater` *(Function)*: The function to produce the updated value.
#### Returns*(Object)*: Returns `object`.
#### Example```jsvar object = { 'a': [{ 'b': { 'c': 3 } }] };
_.update(object, 'a[0].b.c', function(n) { return n * n; });console.log(object.a[0].b.c);// => 9
_.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });console.log(object.x[0].y.z);// => 0```---
<!-- /div --><!-- div --><h3 id="_updatewithobject-path-updater-customizer"><code>_.updateWith(object, path, updater, [customizer])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13923 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.updatewith "See the npm package") [&#x24C9;][1]
This method is like `_.update` except that it accepts `customizer` which isinvoked to produce the objects of `path`. If `customizer` returns `undefined`path creation is handled by the method instead. The `customizer` is invokedwith three arguments: *(nsValue, key, nsObject)*.<br><br>**Note:** This method mutates `object`.
#### Since4.6.0
#### Arguments1. `object` *(Object)*: The object to modify.2. `path` *(Array|string)*: The path of the property to set.3. `updater` *(Function)*: The function to produce the updated value.4. `[customizer]` *(Function)*: The function to customize assigned values.
#### Returns*(Object)*: Returns `object`.
#### Example```jsvar object = {};
_.updateWith(object, '[0][1]', _.constant('a'), Object);// => { '0': { '1': 'a' } }```---
<!-- /div --><!-- div --><h3 id="_valuesobject"><code>_.values(object)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13954 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.values "See the npm package") [&#x24C9;][1]
Creates an array of the own enumerable string keyed property values of `object`.<br><br>**Note:** Non-object values are coerced to objects.
#### Since0.1.0
#### Arguments1. `object` *(Object)*: The object to query.
#### Returns*(Array)*: Returns the array of property values.
#### Example```jsfunction Foo() { this.a = 1; this.b = 2;}
Foo.prototype.c = 3;
_.values(new Foo);// => [1, 2] (iteration order is not guaranteed)
_.values('hi');// => ['h', 'i']```---
<!-- /div --><!-- div --><h3 id="_valuesinobject"><code>_.valuesIn(object)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L13982 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.valuesin "See the npm package") [&#x24C9;][1]
Creates an array of the own and inherited enumerable string keyed propertyvalues of `object`.<br><br>**Note:** Non-object values are coerced to objects.
#### Since3.0.0
#### Arguments1. `object` *(Object)*: The object to query.
#### Returns*(Array)*: Returns the array of property values.
#### Example```jsfunction Foo() { this.a = 1; this.b = 2;}
Foo.prototype.c = 3;
_.valuesIn(new Foo);// => [1, 2, 3] (iteration order is not guaranteed)```---
<!-- /div --><!-- /div --><!-- div -->## `“Seq” Methods`
<!-- div --><h3 id="_value"><code>_(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L1648 "View in source") [&#x24C9;][1]
Creates a `lodash` object which wraps `value` to enable implicit methodchain sequences. Methods that operate on and return arrays, collections,and functions can be chained together. Methods that retrieve a single valueor may return a primitive value will automatically end the chain sequenceand return the unwrapped value. Otherwise, the value must be unwrappedwith `_#value`.<br><br>Explicit chain sequences, which must be unwrapped with `_#value`, may beenabled using `_.chain`.<br><br>The execution of chained methods is lazy, that is, it's deferred until`_#value` is implicitly or explicitly called.<br><br>Lazy evaluation allows several methods to support shortcut fusion.Shortcut fusion is an optimization to merge iteratee calls; this avoidsthe creation of intermediate arrays and can greatly reduce the number ofiteratee executions. Sections of a chain sequence qualify for shortcutfusion if the section is applied to an array and iteratees accept onlyone argument. The heuristic for whether a section qualifies for shortcutfusion is subject to change.<br><br>Chaining is supported in custom builds as long as the `_#value` method isdirectly or indirectly included in the build.<br><br>In addition to lodash methods, wrappers have `Array` and `String` methods.<br><br>The wrapper `Array` methods are:<br>`concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`<br><br>The wrapper `String` methods are:<br>`replace` and `split`<br><br>The wrapper methods that support shortcut fusion are:<br>`at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,`findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,`tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`<br><br>The chainable wrapper methods are:<br>`after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,`before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,`commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,`curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,`difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,`dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,`flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,`flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,`functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,`intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,`keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,`memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,`nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,`overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,`pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,`pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,`remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,`slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,`takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,`toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,`union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,`unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,`valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,`zipObject`, `zipObjectDeep`, and `zipWith`<br><br>The wrapper methods that are **not** chainable by default are:<br>`add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,`cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,`defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,`escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,`findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,`forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,`hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,`isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,`isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,`isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,`isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,`isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,`isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,`isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,`lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,`min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,`padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,`repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,`snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,`sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,`stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,`template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,`toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,`trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,`upperFirst`, `value`, and `words`
#### Arguments1. `value` *(&#42;)*: The value to wrap in a `lodash` instance.
#### Returns*(Object)*: Returns the new `lodash` wrapper instance.
#### Example```jsfunction square(n) { return n * n;}
var wrapped = _([1, 2, 3]);
// Returns an unwrapped value.wrapped.reduce(_.add);// => 6
// Returns a wrapped value.var squares = wrapped.map(square);
_.isArray(squares);// => false
_.isArray(squares.value());// => true```---
<!-- /div --><!-- div --><h3 id="_chainvalue"><code>_.chain(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8759 "View in source") [&#x24C9;][1]
Creates a `lodash` wrapper instance that wraps `value` with explicit methodchain sequences enabled. The result of such sequences must be unwrappedwith `_#value`.
#### Since1.3.0
#### Arguments1. `value` *(&#42;)*: The value to wrap.
#### Returns*(Object)*: Returns the new `lodash` wrapper instance.
#### Example```jsvar users = [ { 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }, { 'user': 'pebbles', 'age': 1 }];
var youngest = _ .chain(users) .sortBy('age') .map(function(o) { return o.user + ' is ' + o.age; }) .head() .value();// => 'pebbles is 1'```---
<!-- /div --><!-- div --><h3 id="_tapvalue-interceptor"><code>_.tap(value, interceptor)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8788 "View in source") [&#x24C9;][1]
This method invokes `interceptor` and returns `value`. The interceptoris invoked with one argument; *(value)*. The purpose of this method is to"tap into" a method chain sequence in order to modify intermediate results.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: The value to provide to `interceptor`.2. `interceptor` *(Function)*: The function to invoke.
#### Returns*(&#42;)*: Returns `value`.
#### Example```js_([1, 2, 3]) .tap(function(array) { // Mutate input array. array.pop(); }) .reverse() .value();// => [2, 1]```---
<!-- /div --><!-- div --><h3 id="_thruvalue-interceptor"><code>_.thru(value, interceptor)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8816 "View in source") [&#x24C9;][1]
This method is like `_.tap` except that it returns the result of `interceptor`.The purpose of this method is to "pass thru" values replacing intermediateresults in a method chain sequence.
#### Since3.0.0
#### Arguments1. `value` *(&#42;)*: The value to provide to `interceptor`.2. `interceptor` *(Function)*: The function to invoke.
#### Returns*(&#42;)*: Returns the result of `interceptor`.
#### Example```js_(' abc ') .chain() .trim() .thru(function(value) { return [value]; }) .value();// => ['abc']```---
<!-- /div --><!-- div --><h3 id="_prototypesymboliterator"><code>_.prototype[Symbol.iterator]()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8971 "View in source") [&#x24C9;][1]
Enables the wrapper to be iterable.
#### Since4.0.0
#### Returns*(Object)*: Returns the wrapper object.
#### Example```jsvar wrapped = _([1, 2]);
wrapped[Symbol.iterator]() === wrapped;// => true
Array.from(wrapped);// => [1, 2]```---
<!-- /div --><!-- div --><h3 id="_prototypeatpaths"><code>_.prototype.at([paths])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8836 "View in source") [&#x24C9;][1]
This method is the wrapper version of `_.at`.
#### Since1.0.0
#### Arguments1. `[paths]` *(...(string|string&#91;&#93;))*: The property paths to pick.
#### Returns*(Object)*: Returns the new `lodash` wrapper instance.
#### Example```jsvar object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
_(object).at(['a[0].b.c', 'a[1]']).value();// => [3, 4]```---
<!-- /div --><!-- div --><h3 id="_prototypechain"><code>_.prototype.chain()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8887 "View in source") [&#x24C9;][1]
Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
#### Since0.1.0
#### Returns*(Object)*: Returns the new `lodash` wrapper instance.
#### Example```jsvar users = [ { 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }];
// A sequence without explicit chaining._(users).head();// => { 'user': 'barney', 'age': 36 }
// A sequence with explicit chaining._(users) .chain() .head() .pick('user') .value();// => { 'user': 'barney' }```---
<!-- /div --><!-- div --><h3 id="_prototypecommit"><code>_.prototype.commit()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8917 "View in source") [&#x24C9;][1]
Executes the chain sequence and returns the wrapped result.
#### Since3.2.0
#### Returns*(Object)*: Returns the new `lodash` wrapper instance.
#### Example```jsvar array = [1, 2];var wrapped = _(array).push(3);
console.log(array);// => [1, 2]
wrapped = wrapped.commit();console.log(array);// => [1, 2, 3]
wrapped.last();// => 3
console.log(array);// => [1, 2, 3]```---
<!-- /div --><!-- div --><h3 id="_prototypenext"><code>_.prototype.next()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8943 "View in source") [&#x24C9;][1]
Gets the next value on a wrapped object following the[iterator protocol](https://mdn.io/iteration_protocols#iterator).
#### Since4.0.0
#### Returns*(Object)*: Returns the next iterator value.
#### Example```jsvar wrapped = _([1, 2]);
wrapped.next();// => { 'done': false, 'value': 1 }
wrapped.next();// => { 'done': false, 'value': 2 }
wrapped.next();// => { 'done': true, 'value': undefined }```---
<!-- /div --><!-- div --><h3 id="_prototypeplantvalue"><code>_.prototype.plant(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L8999 "View in source") [&#x24C9;][1]
Creates a clone of the chain sequence planting `value` as the wrapped value.
#### Since3.2.0
#### Arguments1. `value` *(&#42;)*: The value to plant.
#### Returns*(Object)*: Returns the new `lodash` wrapper instance.
#### Example```jsfunction square(n) { return n * n;}
var wrapped = _([1, 2]).map(square);var other = wrapped.plant([3, 4]);
other.value();// => [9, 16]
wrapped.value();// => [1, 4]```---
<!-- /div --><!-- div --><h3 id="_prototypereverse"><code>_.prototype.reverse()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9039 "View in source") [&#x24C9;][1]
This method is the wrapper version of `_.reverse`.<br><br>**Note:** This method mutates the wrapped array.
#### Since0.1.0
#### Returns*(Object)*: Returns the new `lodash` wrapper instance.
#### Example```jsvar array = [1, 2, 3];
_(array).reverse().value()// => [3, 2, 1]
console.log(array);// => [3, 2, 1]```---
<!-- /div --><!-- div --><h3 id="_prototypevalue"><code>_.prototype.value()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L9071 "View in source") [&#x24C9;][1]
Executes the chain sequence to resolve the unwrapped value.
#### Since0.1.0
#### Aliases*_.prototype.toJSON, _.prototype.valueOf*
#### Returns*(&#42;)*: Returns the resolved unwrapped value.
#### Example```js_([1, 2, 3]).value();// => [1, 2, 3]```---
<!-- /div --><!-- /div --><!-- div -->## `“String” Methods`
<!-- div --><h3 id="_camelcasestring"><code>_.camelCase([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14165 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.camelcase "See the npm package") [&#x24C9;][1]
Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to convert.
#### Returns*(string)*: Returns the camel cased string.
#### Example```js_.camelCase('Foo Bar');// => 'fooBar'
_.camelCase('--foo-bar--');// => 'fooBar'
_.camelCase('__FOO_BAR__');// => 'fooBar'```---
<!-- /div --><!-- div --><h3 id="_capitalizestring"><code>_.capitalize([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14185 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.capitalize "See the npm package") [&#x24C9;][1]
Converts the first character of `string` to upper case and the remainingto lower case.
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to capitalize.
#### Returns*(string)*: Returns the capitalized string.
#### Example```js_.capitalize('FRED');// => 'Fred'```---
<!-- /div --><!-- div --><h3 id="_deburrstring"><code>_.deburr([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14207 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.deburr "See the npm package") [&#x24C9;][1]
Deburrs `string` by converting[Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)letters to basic Latin letters and removing[combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to deburr.
#### Returns*(string)*: Returns the deburred string.
#### Example```js_.deburr('déjà vu');// => 'deja vu'```---
<!-- /div --><!-- div --><h3 id="_endswithstring-target-positionstringlength"><code>_.endsWith([string=''], [target], [position=string.length])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14235 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.endswith "See the npm package") [&#x24C9;][1]
Checks if `string` ends with the given target string.
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to inspect.2. `[target]` *(string)*: The string to search for.3. `[position=string.length]` *(number)*: The position to search up to.
#### Returns*(boolean)*: Returns `true` if `string` ends with `target`, else `false`.
#### Example```js_.endsWith('abc', 'c');// => true
_.endsWith('abc', 'b');// => false
_.endsWith('abc', 'b', 2);// => true```---
<!-- /div --><!-- div --><h3 id="_escapestring"><code>_.escape([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14277 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.escape "See the npm package") [&#x24C9;][1]
Converts the characters "&", "<", ">", '"', and "'" in `string` to theircorresponding HTML entities.<br><br>**Note:** No other characters are escaped. To escape additionalcharacters use a third-party library like [_he_](https://mths.be/he).<br><br>Though the ">" character is escaped for symmetry, characters like">" and "/" don't need escaping in HTML and have no special meaningunless they're part of a tag or unquoted attribute value. See[Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)*(under "semi-related fun fact")* for more details.<br><br>When working with HTML you should always[quote attribute values](http://wonko.com/post/html-escaping) to reduceXSS vectors.
#### Since0.1.0
#### Arguments1. `[string='']` *(string)*: The string to escape.
#### Returns*(string)*: Returns the escaped string.
#### Example```js_.escape('fred, barney, & pebbles');// => 'fred, barney, &amp; pebbles'```---
<!-- /div --><!-- div --><h3 id="_escaperegexpstring"><code>_.escapeRegExp([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14299 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.escaperegexp "See the npm package") [&#x24C9;][1]
Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+","?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to escape.
#### Returns*(string)*: Returns the escaped string.
#### Example```js_.escapeRegExp('[lodash](https://lodash.com/)');// => '\[lodash\]\(https://lodash\.com/\)'```---
<!-- /div --><!-- div --><h3 id="_kebabcasestring"><code>_.kebabCase([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14327 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.kebabcase "See the npm package") [&#x24C9;][1]
Converts `string` to[kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to convert.
#### Returns*(string)*: Returns the kebab cased string.
#### Example```js_.kebabCase('Foo Bar');// => 'foo-bar'
_.kebabCase('fooBar');// => 'foo-bar'
_.kebabCase('__FOO_BAR__');// => 'foo-bar'```---
<!-- /div --><!-- div --><h3 id="_lowercasestring"><code>_.lowerCase([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14351 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.lowercase "See the npm package") [&#x24C9;][1]
Converts `string`, as space separated words, to lower case.
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to convert.
#### Returns*(string)*: Returns the lower cased string.
#### Example```js_.lowerCase('--Foo-Bar--');// => 'foo bar'
_.lowerCase('fooBar');// => 'foo bar'
_.lowerCase('__FOO_BAR__');// => 'foo bar'```---
<!-- /div --><!-- div --><h3 id="_lowerfirststring"><code>_.lowerFirst([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14372 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.lowerfirst "See the npm package") [&#x24C9;][1]
Converts the first character of `string` to lower case.
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to convert.
#### Returns*(string)*: Returns the converted string.
#### Example```js_.lowerFirst('Fred');// => 'fred'
_.lowerFirst('FRED');// => 'fRED'```---
<!-- /div --><!-- div --><h3 id="_padstring-length0-chars"><code>_.pad([string=''], [length=0], [chars=' '])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14397 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.pad "See the npm package") [&#x24C9;][1]
Pads `string` on the left and right sides if it's shorter than `length`.Padding characters are truncated if they can't be evenly divided by `length`.
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to pad.2. `[length=0]` *(number)*: The padding length.3. `[chars=' ']` *(string)*: The string used as padding.
#### Returns*(string)*: Returns the padded string.
#### Example```js_.pad('abc', 8);// => ' abc '
_.pad('abc', 8, '_-');// => '_-abc_-_'
_.pad('abc', 3);// => 'abc'```---
<!-- /div --><!-- div --><h3 id="_padendstring-length0-chars"><code>_.padEnd([string=''], [length=0], [chars=' '])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14436 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.padend "See the npm package") [&#x24C9;][1]
Pads `string` on the right side if it's shorter than `length`. Paddingcharacters are truncated if they exceed `length`.
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to pad.2. `[length=0]` *(number)*: The padding length.3. `[chars=' ']` *(string)*: The string used as padding.
#### Returns*(string)*: Returns the padded string.
#### Example```js_.padEnd('abc', 6);// => 'abc '
_.padEnd('abc', 6, '_-');// => 'abc_-_'
_.padEnd('abc', 3);// => 'abc'```---
<!-- /div --><!-- div --><h3 id="_padstartstring-length0-chars"><code>_.padStart([string=''], [length=0], [chars=' '])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14469 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.padstart "See the npm package") [&#x24C9;][1]
Pads `string` on the left side if it's shorter than `length`. Paddingcharacters are truncated if they exceed `length`.
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to pad.2. `[length=0]` *(number)*: The padding length.3. `[chars=' ']` *(string)*: The string used as padding.
#### Returns*(string)*: Returns the padded string.
#### Example```js_.padStart('abc', 6);// => ' abc'
_.padStart('abc', 6, '_-');// => '_-_abc'
_.padStart('abc', 3);// => 'abc'```---
<!-- /div --><!-- div --><h3 id="_parseintstring-radix10"><code>_.parseInt(string, [radix=10])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14503 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.parseint "See the npm package") [&#x24C9;][1]
Converts `string` to an integer of the specified radix. If `radix` is`undefined` or `0`, a `radix` of `10` is used unless `value` is ahexadecimal, in which case a `radix` of `16` is used.<br><br>**Note:** This method aligns with the[ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
#### Since1.1.0
#### Arguments1. `string` *(string)*: The string to convert.2. `[radix=10]` *(number)*: The radix to interpret `value` by.
#### Returns*(number)*: Returns the converted integer.
#### Example```js_.parseInt('08');// => 8
_.map(['6', '08', '10'], _.parseInt);// => [6, 8, 10]```---
<!-- /div --><!-- div --><h3 id="_repeatstring-n1"><code>_.repeat([string=''], [n=1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14534 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.repeat "See the npm package") [&#x24C9;][1]
Repeats the given string `n` times.
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to repeat.2. `[n=1]` *(number)*: The number of times to repeat the string.
#### Returns*(string)*: Returns the repeated string.
#### Example```js_.repeat('*', 3);// => '***'
_.repeat('abc', 2);// => 'abcabc'
_.repeat('abc', 0);// => ''```---
<!-- /div --><!-- div --><h3 id="_replacestring-pattern-replacement"><code>_.replace([string=''], pattern, replacement)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14562 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.replace "See the npm package") [&#x24C9;][1]
Replaces matches for `pattern` in `string` with `replacement`.<br><br>**Note:** This method is based on[`String#replace`](https://mdn.io/String/replace).
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to modify.2. `pattern` *(RegExp|string)*: The pattern to replace.3. `replacement` *(Function|string)*: The match replacement.
#### Returns*(string)*: Returns the modified string.
#### Example```js_.replace('Hi Fred', 'Fred', 'Barney');// => 'Hi Barney'```---
<!-- /div --><!-- div --><h3 id="_snakecasestring"><code>_.snakeCase([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14590 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.snakecase "See the npm package") [&#x24C9;][1]
Converts `string` to[snake case](https://en.wikipedia.org/wiki/Snake_case).
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to convert.
#### Returns*(string)*: Returns the snake cased string.
#### Example```js_.snakeCase('Foo Bar');// => 'foo_bar'
_.snakeCase('fooBar');// => 'foo_bar'
_.snakeCase('--FOO-BAR--');// => 'foo_bar'```---
<!-- /div --><!-- div --><h3 id="_splitstring-separator-limit"><code>_.split([string=''], separator, [limit])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14613 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.split "See the npm package") [&#x24C9;][1]
Splits `string` by `separator`.<br><br>**Note:** This method is based on[`String#split`](https://mdn.io/String/split).
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to split.2. `separator` *(RegExp|string)*: The separator pattern to split by.3. `[limit]` *(number)*: The length to truncate results to.
#### Returns*(Array)*: Returns the string segments.
#### Example```js_.split('a-b-c', '-', 2);// => ['a', 'b']```---
<!-- /div --><!-- div --><h3 id="_startcasestring"><code>_.startCase([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14655 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.startcase "See the npm package") [&#x24C9;][1]
Converts `string` to[start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
#### Since3.1.0
#### Arguments1. `[string='']` *(string)*: The string to convert.
#### Returns*(string)*: Returns the start cased string.
#### Example```js_.startCase('--foo-bar--');// => 'Foo Bar'
_.startCase('fooBar');// => 'Foo Bar'
_.startCase('__FOO_BAR__');// => 'FOO BAR'```---
<!-- /div --><!-- div --><h3 id="_startswithstring-target-position0"><code>_.startsWith([string=''], [target], [position=0])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14682 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.startswith "See the npm package") [&#x24C9;][1]
Checks if `string` starts with the given target string.
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to inspect.2. `[target]` *(string)*: The string to search for.3. `[position=0]` *(number)*: The position to search from.
#### Returns*(boolean)*: Returns `true` if `string` starts with `target`, else `false`.
#### Example```js_.startsWith('abc', 'a');// => true
_.startsWith('abc', 'b');// => false
_.startsWith('abc', 'b', 1);// => true```---
<!-- /div --><!-- div --><h3 id="_templatestring-options"><code>_.template([string=''], [options={}])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14796 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.template "See the npm package") [&#x24C9;][1]
Creates a compiled template function that can interpolate data propertiesin "interpolate" delimiters, HTML-escape interpolated data properties in"escape" delimiters, and execute JavaScript in "evaluate" delimiters. Dataproperties may be accessed as free variables in the template. If a settingobject is given, it takes precedence over `_.templateSettings` values.<br><br>**Note:** In the development build `_.template` utilizes[sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)for easier debugging.<br><br>For more information on precompiling templates see[lodash's custom builds documentation](https://lodash.com/custom-builds).<br><br>For more information on Chrome extension sandboxes see[Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
#### Since0.1.0
#### Arguments1. `[string='']` *(string)*: The template string.2. `[options={}]` *(Object)*: The options object.3. `[options.escape=_.templateSettings.escape]` *(RegExp)*: The HTML "escape" delimiter.4. `[options.evaluate=_.templateSettings.evaluate]` *(RegExp)*: The "evaluate" delimiter.5. `[options.imports=_.templateSettings.imports]` *(Object)*: An object to import into the template as free variables.6. `[options.interpolate=_.templateSettings.interpolate]` *(RegExp)*: The "interpolate" delimiter.7. `[options.sourceURL='lodash.templateSources[n]']` *(string)*: The sourceURL of the compiled template.8. `[options.variable='obj']` *(string)*: The data object variable name.
#### Returns*(Function)*: Returns the compiled template function.
#### Example```js// Use the "interpolate" delimiter to create a compiled template.var compiled = _.template('hello <%= user %>!');compiled({ 'user': 'fred' });// => 'hello fred!'
// Use the HTML "escape" delimiter to escape data property values.var compiled = _.template('<b><%- value %></b>');compiled({ 'value': '<script>' });// => '<b>&lt;script&gt;</b>'
// Use the "evaluate" delimiter to execute JavaScript and generate HTML.var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');compiled({ 'users': ['fred', 'barney'] });// => '<li>fred</li><li>barney</li>'
// Use the internal `print` function in "evaluate" delimiters.var compiled = _.template('<% print("hello " + user); %>!');compiled({ 'user': 'barney' });// => 'hello barney!'
// Use the ES template literal delimiter as an "interpolate" delimiter.// Disable support by replacing the "interpolate" delimiter.var compiled = _.template('hello ${ user }!');compiled({ 'user': 'pebbles' });// => 'hello pebbles!'
// Use backslashes to treat delimiters as plain text.var compiled = _.template('<%= "\\<%- value %\\>" %>');compiled({ 'value': 'ignored' });// => '<%- value %>'
// Use the `imports` option to import `jQuery` as `jq`.var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';var compiled = _.template(text, { 'imports': { 'jq': jQuery } });compiled({ 'users': ['fred', 'barney'] });// => '<li>fred</li><li>barney</li>'
// Use the `sourceURL` option to specify a custom sourceURL for the template.var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });compiled(data);// => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
// Use the `variable` option to ensure a with-statement isn't used in the compiled template.var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });compiled.source;// => function(data) {// var __t, __p = '';// __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';// return __p;// }
// Use custom template delimiters._.templateSettings.interpolate = /{{([\s\S]+?)}}/g;var compiled = _.template('hello {{ user }}!');compiled({ 'user': 'mustache' });// => 'hello mustache!'
// Use the `source` property to inline compiled templates for meaningful// line numbers in error messages and stack traces.fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\ var JST = {\ "main": ' + _.template(mainText).source + '\ };\');```---
<!-- /div --><!-- div --><h3 id="_tolowerstring"><code>_.toLower([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14928 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.tolower "See the npm package") [&#x24C9;][1]
Converts `string`, as a whole, to lower case just like[String#toLowerCase](https://mdn.io/toLowerCase).
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to convert.
#### Returns*(string)*: Returns the lower cased string.
#### Example```js_.toLower('--Foo-Bar--');// => '--foo-bar--'
_.toLower('fooBar');// => 'foobar'
_.toLower('__FOO_BAR__');// => '__foo_bar__'```---
<!-- /div --><!-- div --><h3 id="_toupperstring"><code>_.toUpper([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14953 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.toupper "See the npm package") [&#x24C9;][1]
Converts `string`, as a whole, to upper case just like[String#toUpperCase](https://mdn.io/toUpperCase).
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to convert.
#### Returns*(string)*: Returns the upper cased string.
#### Example```js_.toUpper('--foo-bar--');// => '--FOO-BAR--'
_.toUpper('fooBar');// => 'FOOBAR'
_.toUpper('__foo_bar__');// => '__FOO_BAR__'```---
<!-- /div --><!-- div --><h3 id="_trimstring-charswhitespace"><code>_.trim([string=''], [chars=whitespace])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L14979 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.trim "See the npm package") [&#x24C9;][1]
Removes leading and trailing whitespace or specified characters from `string`.
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to trim.2. `[chars=whitespace]` *(string)*: The characters to trim.
#### Returns*(string)*: Returns the trimmed string.
#### Example```js_.trim(' abc ');// => 'abc'
_.trim('-_-abc-_-', '_-');// => 'abc'
_.map([' foo ', ' bar '], _.trim);// => ['foo', 'bar']```---
<!-- /div --><!-- div --><h3 id="_trimendstring-charswhitespace"><code>_.trimEnd([string=''], [chars=whitespace])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15014 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.trimend "See the npm package") [&#x24C9;][1]
Removes trailing whitespace or specified characters from `string`.
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to trim.2. `[chars=whitespace]` *(string)*: The characters to trim.
#### Returns*(string)*: Returns the trimmed string.
#### Example```js_.trimEnd(' abc ');// => ' abc'
_.trimEnd('-_-abc-_-', '_-');// => '-_-abc'```---
<!-- /div --><!-- div --><h3 id="_trimstartstring-charswhitespace"><code>_.trimStart([string=''], [chars=whitespace])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15047 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.trimstart "See the npm package") [&#x24C9;][1]
Removes leading whitespace or specified characters from `string`.
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to trim.2. `[chars=whitespace]` *(string)*: The characters to trim.
#### Returns*(string)*: Returns the trimmed string.
#### Example```js_.trimStart(' abc ');// => 'abc '
_.trimStart('-_-abc-_-', '_-');// => 'abc-_-'```---
<!-- /div --><!-- div --><h3 id="_truncatestring-options"><code>_.truncate([string=''], [options={}])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15098 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.truncate "See the npm package") [&#x24C9;][1]
Truncates `string` if it's longer than the given maximum string length.The last characters of the truncated string are replaced with the omissionstring which defaults to "...".
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to truncate.2. `[options={}]` *(Object)*: The options object.3. `[options.length=30]` *(number)*: The maximum string length.4. `[options.omission='...']` *(string)*: The string to indicate text is omitted.5. `[options.separator]` *(RegExp|string)*: The separator pattern to truncate to.
#### Returns*(string)*: Returns the truncated string.
#### Example```js_.truncate('hi-diddly-ho there, neighborino');// => 'hi-diddly-ho there, neighbo...'
_.truncate('hi-diddly-ho there, neighborino', { 'length': 24, 'separator': ' '});// => 'hi-diddly-ho there,...'
_.truncate('hi-diddly-ho there, neighborino', { 'length': 24, 'separator': /,? +/});// => 'hi-diddly-ho there...'
_.truncate('hi-diddly-ho there, neighborino', { 'omission': ' [...]'});// => 'hi-diddly-ho there, neig [...]'```---
<!-- /div --><!-- div --><h3 id="_unescapestring"><code>_.unescape([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15173 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.unescape "See the npm package") [&#x24C9;][1]
The inverse of `_.escape`; this method converts the HTML entities`&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` totheir corresponding characters.<br><br>**Note:** No other HTML entities are unescaped. To unescape additionalHTML entities use a third-party library like [_he_](https://mths.be/he).
#### Since0.6.0
#### Arguments1. `[string='']` *(string)*: The string to unescape.
#### Returns*(string)*: Returns the unescaped string.
#### Example```js_.unescape('fred, barney, &amp; pebbles');// => 'fred, barney, & pebbles'```---
<!-- /div --><!-- div --><h3 id="_uppercasestring"><code>_.upperCase([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15200 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.uppercase "See the npm package") [&#x24C9;][1]
Converts `string`, as space separated words, to upper case.
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to convert.
#### Returns*(string)*: Returns the upper cased string.
#### Example```js_.upperCase('--foo-bar');// => 'FOO BAR'
_.upperCase('fooBar');// => 'FOO BAR'
_.upperCase('__foo_bar__');// => 'FOO BAR'```---
<!-- /div --><!-- div --><h3 id="_upperfirststring"><code>_.upperFirst([string=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15221 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.upperfirst "See the npm package") [&#x24C9;][1]
Converts the first character of `string` to upper case.
#### Since4.0.0
#### Arguments1. `[string='']` *(string)*: The string to convert.
#### Returns*(string)*: Returns the converted string.
#### Example```js_.upperFirst('fred');// => 'Fred'
_.upperFirst('FRED');// => 'FRED'```---
<!-- /div --><!-- div --><h3 id="_wordsstring-pattern"><code>_.words([string=''], [pattern])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15242 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.words "See the npm package") [&#x24C9;][1]
Splits `string` into an array of its words.
#### Since3.0.0
#### Arguments1. `[string='']` *(string)*: The string to inspect.2. `[pattern]` *(RegExp|string)*: The pattern to match words.
#### Returns*(Array)*: Returns the words of `string`.
#### Example```js_.words('fred, barney, & pebbles');// => ['fred', 'barney', 'pebbles']
_.words('fred, barney, & pebbles', /[^, ]+/g);// => ['fred', 'barney', '&', 'pebbles']```---
<!-- /div --><!-- /div --><!-- div -->## `“Util” Methods`
<!-- div --><h3 id="_attemptfunc-args"><code>_.attempt(func, [args])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15276 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.attempt "See the npm package") [&#x24C9;][1]
Attempts to invoke `func`, returning either the result or the caught errorobject. Any additional arguments are provided to `func` when it's invoked.
#### Since3.0.0
#### Arguments1. `func` *(Function)*: The function to attempt.2. `[args]` *(...&#42;)*: The arguments to invoke `func` with.
#### Returns*(&#42;)*: Returns the `func` result or error object.
#### Example```js// Avoid throwing errors for invalid selectors.var elements = _.attempt(function(selector) { return document.querySelectorAll(selector);}, '>_>');
if (_.isError(elements)) { elements = [];}```---
<!-- /div --><!-- div --><h3 id="_bindallobject-methodnames"><code>_.bindAll(object, methodNames)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15310 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.bindall "See the npm package") [&#x24C9;][1]
Binds methods of an object to the object itself, overwriting the existingmethod.<br><br>**Note:** This method doesn't set the "length" property of bound functions.
#### Since0.1.0
#### Arguments1. `object` *(Object)*: The object to bind and assign the bound methods to.2. `methodNames` *(...(string|string&#91;&#93;))*: The object method names to bind.
#### Returns*(Object)*: Returns `object`.
#### Example```jsvar view = { 'label': 'docs', 'click': function() { console.log('clicked ' + this.label); }};
_.bindAll(view, ['click']);jQuery(element).on('click', view.click);// => Logs 'clicked docs' when clicked.```---
<!-- /div --><!-- div --><h3 id="_condpairs"><code>_.cond(pairs)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15347 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.cond "See the npm package") [&#x24C9;][1]
Creates a function that iterates over `pairs` and invokes the correspondingfunction of the first predicate to return truthy. The predicate-functionpairs are invoked with the `this` binding and arguments of the createdfunction.
#### Since4.0.0
#### Arguments1. `pairs` *(Array)*: The predicate-function pairs.
#### Returns*(Function)*: Returns the new composite function.
#### Example```jsvar func = _.cond([ [_.matches({ 'a': 1 }), _.constant('matches A')], [_.conforms({ 'b': _.isNumber }), _.constant('matches B')], [_.stubTrue, _.constant('no match')]]);
func({ 'a': 1, 'b': 2 });// => 'matches A'
func({ 'a': 0, 'b': 1 });// => 'matches B'
func({ 'a': '1', 'b': '2' });// => 'no match'```---
<!-- /div --><!-- div --><h3 id="_conformssource"><code>_.conforms(source)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15393 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.conforms "See the npm package") [&#x24C9;][1]
Creates a function that invokes the predicate properties of `source` withthe corresponding property values of a given object, returning `true` ifall predicates return truthy, else `false`.<br><br>**Note:** The created function is equivalent to `_.conformsTo` with`source` partially applied.
#### Since4.0.0
#### Arguments1. `source` *(Object)*: The object of property predicates to conform to.
#### Returns*(Function)*: Returns the new spec function.
#### Example```jsvar objects = [ { 'a': 2, 'b': 1 }, { 'a': 1, 'b': 2 }];
_.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));// => [{ 'a': 1, 'b': 2 }]```---
<!-- /div --><!-- div --><h3 id="_constantvalue"><code>_.constant(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15416 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.constant "See the npm package") [&#x24C9;][1]
Creates a function that returns `value`.
#### Since2.4.0
#### Arguments1. `value` *(&#42;)*: The value to return from the new function.
#### Returns*(Function)*: Returns the new constant function.
#### Example```jsvar objects = _.times(2, _.constant({ 'a': 1 }));
console.log(objects);// => [{ 'a': 1 }, { 'a': 1 }]
console.log(objects[0] === objects[1]);// => true```---
<!-- /div --><!-- div --><h3 id="_defaulttovalue-defaultvalue"><code>_.defaultTo(value, defaultValue)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15442 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.defaultto "See the npm package") [&#x24C9;][1]
Checks `value` to determine whether a default value should be returned inits place. The `defaultValue` is returned if `value` is `NaN`, `null`,or `undefined`.
#### Since4.14.0
#### Arguments1. `value` *(&#42;)*: The value to check.2. `defaultValue` *(&#42;)*: The default value.
#### Returns*(&#42;)*: Returns the resolved value.
#### Example```js_.defaultTo(1, 10);// => 1
_.defaultTo(undefined, 10);// => 10```---
<!-- /div --><!-- div --><h3 id="_flowfuncs"><code>_.flow([funcs])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15468 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.flow "See the npm package") [&#x24C9;][1]
Creates a function that returns the result of invoking the given functionswith the `this` binding of the created function, where each successiveinvocation is supplied the return value of the previous.
#### Since3.0.0
#### Arguments1. `[funcs]` *(...(Function|Function&#91;&#93;))*: The functions to invoke.
#### Returns*(Function)*: Returns the new composite function.
#### Example```jsfunction square(n) { return n * n;}
var addSquare = _.flow([_.add, square]);addSquare(1, 2);// => 9```---
<!-- /div --><!-- div --><h3 id="_flowrightfuncs"><code>_.flowRight([funcs])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15491 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.flowright "See the npm package") [&#x24C9;][1]
This method is like `_.flow` except that it creates a function thatinvokes the given functions from right to left.
#### Since3.0.0
#### Arguments1. `[funcs]` *(...(Function|Function&#91;&#93;))*: The functions to invoke.
#### Returns*(Function)*: Returns the new composite function.
#### Example```jsfunction square(n) { return n * n;}
var addSquare = _.flowRight([square, _.add]);addSquare(1, 2);// => 9```---
<!-- /div --><!-- div --><h3 id="_identityvalue"><code>_.identity(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15509 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.identity "See the npm package") [&#x24C9;][1]
This method returns the first argument it receives.
#### Since0.1.0
#### Arguments1. `value` *(&#42;)*: Any value.
#### Returns*(&#42;)*: Returns `value`.
#### Example```jsvar object = { 'a': 1 };
console.log(_.identity(object) === object);// => true```---
<!-- /div --><!-- div --><h3 id="_iterateefunc_identity"><code>_.iteratee([func=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15555 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.iteratee "See the npm package") [&#x24C9;][1]
Creates a function that invokes `func` with the arguments of the createdfunction. If `func` is a property name, the created function returns theproperty value for a given element. If `func` is an array or object, thecreated function returns `true` for elements that contain the equivalentsource properties, otherwise it returns `false`.
#### Since4.0.0
#### Arguments1. `[func=_.identity]` *(&#42;)*: The value to convert to a callback.
#### Returns*(Function)*: Returns the callback.
#### Example```jsvar users = [ { 'user': 'barney', 'age': 36, 'active': true }, { 'user': 'fred', 'age': 40, 'active': false }];
// The `_.matches` iteratee shorthand._.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));// => [{ 'user': 'barney', 'age': 36, 'active': true }]
// The `_.matchesProperty` iteratee shorthand._.filter(users, _.iteratee(['user', 'fred']));// => [{ 'user': 'fred', 'age': 40 }]
// The `_.property` iteratee shorthand._.map(users, _.iteratee('user'));// => ['barney', 'fred']
// Create custom iteratee shorthands._.iteratee = _.wrap(_.iteratee, function(iteratee, func) { return !_.isRegExp(func) ? iteratee(func) : function(string) { return func.test(string); };});
_.filter(['abc', 'def'], /ef/);// => ['def']```---
<!-- /div --><!-- div --><h3 id="_matchessource"><code>_.matches(source)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15594 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.matches "See the npm package") [&#x24C9;][1]
Creates a function that performs a partial deep comparison between a givenobject and `source`, returning `true` if the given object has equivalentproperty values, else `false`.<br><br>**Note:** The created function is equivalent to `_.isMatch` with `source`partially applied.<br><br>Partial comparisons will match empty array and empty object `source`values against any array or object value, respectively. See `_.isEqual`for a list of supported value comparisons.<br><br>**Note:** Multiple values can be checked by combining several matchersusing `_.overSome`
#### Since3.0.0
#### Arguments1. `source` *(Object)*: The object of property values to match.
#### Returns*(Function)*: Returns the new spec function.
#### Example```jsvar objects = [ { 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }];
_.filter(objects, _.matches({ 'a': 4, 'c': 6 }));// => [{ 'a': 4, 'b': 5, 'c': 6 }]
// Checking for several possible values_.filter(users, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));// => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]```---
<!-- /div --><!-- div --><h3 id="_matchespropertypath-srcvalue"><code>_.matchesProperty(path, srcValue)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15631 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.matchesproperty "See the npm package") [&#x24C9;][1]
Creates a function that performs a partial deep comparison between thevalue at `path` of a given object to `srcValue`, returning `true` if theobject value is equivalent, else `false`.<br><br>**Note:** Partial comparisons will match empty array and empty object`srcValue` values against any array or object value, respectively. See`_.isEqual` for a list of supported value comparisons.<br><br>**Note:** Multiple values can be checked by combining several matchersusing `_.overSome`
#### Since3.2.0
#### Arguments1. `path` *(Array|string)*: The path of the property to get.2. `srcValue` *(&#42;)*: The value to match.
#### Returns*(Function)*: Returns the new spec function.
#### Example```jsvar objects = [ { 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }];
_.find(objects, _.matchesProperty('a', 4));// => { 'a': 4, 'b': 5, 'c': 6 }
// Checking for several possible values_.filter(users, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));// => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]```---
<!-- /div --><!-- div --><h3 id="_methodpath-args"><code>_.method(path, [args])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15659 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.method "See the npm package") [&#x24C9;][1]
Creates a function that invokes the method at `path` of a given object.Any additional arguments are provided to the invoked method.
#### Since3.7.0
#### Arguments1. `path` *(Array|string)*: The path of the method to invoke.2. `[args]` *(...&#42;)*: The arguments to invoke the method with.
#### Returns*(Function)*: Returns the new invoker function.
#### Example```jsvar objects = [ { 'a': { 'b': _.constant(2) } }, { 'a': { 'b': _.constant(1) } }];
_.map(objects, _.method('a.b'));// => [2, 1]
_.map(objects, _.method(['a', 'b']));// => [2, 1]```---
<!-- /div --><!-- div --><h3 id="_methodofobject-args"><code>_.methodOf(object, [args])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15688 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.methodof "See the npm package") [&#x24C9;][1]
The opposite of `_.method`; this method creates a function that invokesthe method at a given path of `object`. Any additional arguments areprovided to the invoked method.
#### Since3.7.0
#### Arguments1. `object` *(Object)*: The object to query.2. `[args]` *(...&#42;)*: The arguments to invoke the method with.
#### Returns*(Function)*: Returns the new invoker function.
#### Example```jsvar array = _.times(3, _.constant), object = { 'a': array, 'b': array, 'c': array };_.map(['a[2]', 'c[0]'], _.methodOf(object));// => [2, 0]
_.map([['a', '2'], ['c', '0']], _.methodOf(object));// => [2, 0]```---
<!-- /div --><!-- div --><h3 id="_mixinobjectlodash-source-options"><code>_.mixin([object=lodash], source, [options={}])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15730 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.mixin "See the npm package") [&#x24C9;][1]
Adds all own enumerable string keyed function properties of a sourceobject to the destination object. If `object` is a function, then methodsare added to its prototype as well.<br><br>**Note:** Use `_.runInContext` to create a pristine `lodash` function toavoid conflicts caused by modifying the original.
#### Since0.1.0
#### Arguments1. `[object=lodash]` *(Function|Object)*: The destination object.2. `source` *(Object)*: The object of functions to add.3. `[options={}]` *(Object)*: The options object.4. `[options.chain=true]` *(boolean)*: Specify whether mixins are chainable.
#### Returns*(&#42;)*: Returns `object`.
#### Example```jsfunction vowels(string) { return _.filter(string, function(v) { return /[aeiou]/i.test(v); });}
_.mixin({ 'vowels': vowels });_.vowels('fred');// => ['e']
_('fred').vowels().value();// => ['e']
_.mixin({ 'vowels': vowels }, { 'chain': false });_('fred').vowels();// => ['e']```---
<!-- /div --><!-- div --><h3 id="_noconflict"><code>_.noConflict()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15779 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.noconflict "See the npm package") [&#x24C9;][1]
Reverts the `_` variable to its previous value and returns a reference tothe `lodash` function.
#### Since0.1.0
#### Returns*(Function)*: Returns the `lodash` function.
#### Example```jsvar lodash = _.noConflict();```---
<!-- /div --><!-- div --><h3 id="_noop"><code>_.noop()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15798 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.noop "See the npm package") [&#x24C9;][1]
This method returns `undefined`.
#### Since2.3.0
#### Example```js_.times(2, _.noop);// => [undefined, undefined]```---
<!-- /div --><!-- div --><h3 id="_nthargn0"><code>_.nthArg([n=0])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15822 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.ntharg "See the npm package") [&#x24C9;][1]
Creates a function that gets the argument at index `n`. If `n` is negative,the nth argument from the end is returned.
#### Since4.0.0
#### Arguments1. `[n=0]` *(number)*: The index of the argument to return.
#### Returns*(Function)*: Returns the new pass-thru function.
#### Example```jsvar func = _.nthArg(1);func('a', 'b', 'c', 'd');// => 'b'
var func = _.nthArg(-2);func('a', 'b', 'c', 'd');// => 'c'```---
<!-- /div --><!-- div --><h3 id="_overiteratees_identity"><code>_.over([iteratees=[_.identity]])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15847 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.over "See the npm package") [&#x24C9;][1]
Creates a function that invokes `iteratees` with the arguments it receivesand returns their results.
#### Since4.0.0
#### Arguments1. `[iteratees=[_.identity]]` *(...(Function|Function&#91;&#93;))*: The iteratees to invoke.
#### Returns*(Function)*: Returns the new function.
#### Example```jsvar func = _.over([Math.max, Math.min]);
func(1, 2, 3, 4);// => [4, 1]```---
<!-- /div --><!-- div --><h3 id="_overeverypredicates_identity"><code>_.overEvery([predicates=[_.identity]])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15877 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.overevery "See the npm package") [&#x24C9;][1]
Creates a function that checks if **all** of the `predicates` returntruthy when invoked with the arguments it receives.<br><br>Following shorthands are possible for providing predicates.Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
#### Since4.0.0
#### Arguments1. `[predicates=[_.identity]]` *(...(Function|Function&#91;&#93;))*: The predicates to check.
#### Returns*(Function)*: Returns the new function.
#### Example```jsvar func = _.overEvery([Boolean, isFinite]);
func('1');// => true
func(null);// => false
func(NaN);// => false```---
<!-- /div --><!-- div --><h3 id="_oversomepredicates_identity"><code>_.overSome([predicates=[_.identity]])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15910 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.oversome "See the npm package") [&#x24C9;][1]
Creates a function that checks if **any** of the `predicates` returntruthy when invoked with the arguments it receives.<br><br>Following shorthands are possible for providing predicates.Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
#### Since4.0.0
#### Arguments1. `[predicates=[_.identity]]` *(...(Function|Function&#91;&#93;))*: The predicates to check.
#### Returns*(Function)*: Returns the new function.
#### Example```jsvar func = _.overSome([Boolean, isFinite]);
func('1');// => true
func(null);// => true
func(NaN);// => false
var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])```---
<!-- /div --><!-- div --><h3 id="_propertypath"><code>_.property(path)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15934 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.property "See the npm package") [&#x24C9;][1]
Creates a function that returns the value at `path` of a given object.
#### Since2.4.0
#### Arguments1. `path` *(Array|string)*: The path of the property to get.
#### Returns*(Function)*: Returns the new accessor function.
#### Example```jsvar objects = [ { 'a': { 'b': 2 } }, { 'a': { 'b': 1 } }];
_.map(objects, _.property('a.b'));// => [2, 1]
_.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');// => [1, 2]```---
<!-- /div --><!-- div --><h3 id="_propertyofobject"><code>_.propertyOf(object)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L15959 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.propertyof "See the npm package") [&#x24C9;][1]
The opposite of `_.property`; this method creates a function that returnsthe value at a given path of `object`.
#### Since3.0.0
#### Arguments1. `object` *(Object)*: The object to query.
#### Returns*(Function)*: Returns the new accessor function.
#### Example```jsvar array = [0, 1, 2], object = { 'a': array, 'b': array, 'c': array };_.map(['a[2]', 'c[0]'], _.propertyOf(object));// => [2, 0]
_.map([['a', '2'], ['c', '0']], _.propertyOf(object));// => [2, 0]```---
<!-- /div --><!-- div --><h3 id="_rangestart0-end-step1"><code>_.range([start=0], end, [step=1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16006 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.range "See the npm package") [&#x24C9;][1]
Creates an array of numbers *(positive and/or negative)* progressing from`start` up to, but not including, `end`. A step of `-1` is used if a negative`start` is specified without an `end` or `step`. If `end` is not specified,it's set to `start` with `start` then set to `0`.<br><br>**Note:** JavaScript follows the IEEE-754 standard for resolvingfloating-point values which can produce unexpected results.
#### Since0.1.0
#### Arguments1. `[start=0]` *(number)*: The start of the range.2. `end` *(number)*: The end of the range.3. `[step=1]` *(number)*: The value to increment or decrement by.
#### Returns*(Array)*: Returns the range of numbers.
#### Example```js_.range(4);// => [0, 1, 2, 3]
_.range(-4);// => [0, -1, -2, -3]
_.range(1, 5);// => [1, 2, 3, 4]
_.range(0, 20, 5);// => [0, 5, 10, 15]
_.range(0, -4, -1);// => [0, -1, -2, -3]
_.range(1, 4, 0);// => [1, 1, 1]
_.range(0);// => []```---
<!-- /div --><!-- div --><h3 id="_rangerightstart0-end-step1"><code>_.rangeRight([start=0], end, [step=1])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16044 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.rangeright "See the npm package") [&#x24C9;][1]
This method is like `_.range` except that it populates values indescending order.
#### Since4.0.0
#### Arguments1. `[start=0]` *(number)*: The start of the range.2. `end` *(number)*: The end of the range.3. `[step=1]` *(number)*: The value to increment or decrement by.
#### Returns*(Array)*: Returns the range of numbers.
#### Example```js_.rangeRight(4);// => [3, 2, 1, 0]
_.rangeRight(-4);// => [-3, -2, -1, 0]
_.rangeRight(1, 5);// => [4, 3, 2, 1]
_.rangeRight(0, 20, 5);// => [15, 10, 5, 0]
_.rangeRight(0, -4, -1);// => [-3, -2, -1, 0]
_.rangeRight(1, 4, 0);// => [1, 1, 1]
_.rangeRight(0);// => []```---
<!-- /div --><!-- div --><h3 id="_runincontextcontextroot"><code>_.runInContext([context=root])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L1406 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.runincontext "See the npm package") [&#x24C9;][1]
Create a new pristine `lodash` function using the `context` object.
#### Since1.1.0
#### Arguments1. `[context=root]` *(Object)*: The context object.
#### Returns*(Function)*: Returns a new `lodash` function.
#### Example```js_.mixin({ 'foo': _.constant('foo') });
var lodash = _.runInContext();lodash.mixin({ 'bar': lodash.constant('bar') });
_.isFunction(_.foo);// => true_.isFunction(_.bar);// => false
lodash.isFunction(lodash.foo);// => falselodash.isFunction(lodash.bar);// => true
// Create a suped-up `defer` in Node.js.var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;```---
<!-- /div --><!-- div --><h3 id="_stubarray"><code>_.stubArray()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16064 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.stubarray "See the npm package") [&#x24C9;][1]
This method returns a new empty array.
#### Since4.13.0
#### Returns*(Array)*: Returns the new empty array.
#### Example```jsvar arrays = _.times(2, _.stubArray);
console.log(arrays);// => [[], []]
console.log(arrays[0] === arrays[1]);// => false```---
<!-- /div --><!-- div --><h3 id="_stubfalse"><code>_.stubFalse()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16081 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.stubfalse "See the npm package") [&#x24C9;][1]
This method returns `false`.
#### Since4.13.0
#### Returns*(boolean)*: Returns `false`.
#### Example```js_.times(2, _.stubFalse);// => [false, false]```---
<!-- /div --><!-- div --><h3 id="_stubobject"><code>_.stubObject()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16103 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.stubobject "See the npm package") [&#x24C9;][1]
This method returns a new empty object.
#### Since4.13.0
#### Returns*(Object)*: Returns the new empty object.
#### Example```jsvar objects = _.times(2, _.stubObject);
console.log(objects);// => [{}, {}]
console.log(objects[0] === objects[1]);// => false```---
<!-- /div --><!-- div --><h3 id="_stubstring"><code>_.stubString()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16120 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.stubstring "See the npm package") [&#x24C9;][1]
This method returns an empty string.
#### Since4.13.0
#### Returns*(string)*: Returns the empty string.
#### Example```js_.times(2, _.stubString);// => ['', '']```---
<!-- /div --><!-- div --><h3 id="_stubtrue"><code>_.stubTrue()</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16137 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.stubtrue "See the npm package") [&#x24C9;][1]
This method returns `true`.
#### Since4.13.0
#### Returns*(boolean)*: Returns `true`.
#### Example```js_.times(2, _.stubTrue);// => [true, true]```---
<!-- /div --><!-- div --><h3 id="_timesn-iteratee_identity"><code>_.times(n, [iteratee=_.identity])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16160 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.times "See the npm package") [&#x24C9;][1]
Invokes the iteratee `n` times, returning an array of the results ofeach invocation. The iteratee is invoked with one argument; *(index)*.
#### Since0.1.0
#### Arguments1. `n` *(number)*: The number of times to invoke `iteratee`.2. `[iteratee=_.identity]` *(Function)*: The function invoked per iteration.
#### Returns*(Array)*: Returns the array of results.
#### Example```js_.times(3, String);// => ['0', '1', '2']
_.times(4, _.constant(0));// => [0, 0, 0, 0]```---
<!-- /div --><!-- div --><h3 id="_topathvalue"><code>_.toPath(value)</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16195 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.topath "See the npm package") [&#x24C9;][1]
Converts `value` to a property path array.
#### Since4.0.0
#### Arguments1. `value` *(&#42;)*: The value to convert.
#### Returns*(Array)*: Returns the new property path array.
#### Example```js_.toPath('a.b.c');// => ['a', 'b', 'c']
_.toPath('a[0].b.c');// => ['a', '0', 'b', 'c']```---
<!-- /div --><!-- div --><h3 id="_uniqueidprefix"><code>_.uniqueId([prefix=''])</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16219 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.uniqueid "See the npm package") [&#x24C9;][1]
Generates a unique ID. If `prefix` is given, the ID is appended to it.
#### Since0.1.0
#### Arguments1. `[prefix='']` *(string)*: The value to prefix the ID with.
#### Returns*(string)*: Returns the unique ID.
#### Example```js_.uniqueId('contact_');// => 'contact_104'
_.uniqueId();// => '105'```---
<!-- /div --><!-- /div --><!-- div -->## `Properties`
<!-- div --><h3 id="_version"><code>_.VERSION</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L16910 "View in source") [&#x24C9;][1]
(string): The semantic version number.
---
<!-- /div --><!-- div --><h3 id="_templatesettings"><code>_.templateSettings</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L1717 "View in source") [&#x24C3;](https://www.npmjs.com/package/lodash.templatesettings "See the npm package") [&#x24C9;][1]
(Object): By default, the template delimiters used by lodash are like those inembedded Ruby *(ERB)* as well as ES2015 template strings. Change thefollowing template settings to use alternative delimiters.
---
<!-- /div --><!-- div --><h3 id="_templatesettingsescape"><code>_.templateSettings.escape</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L1725 "View in source") [&#x24C9;][1]
(RegExp): Used to detect `data` property values to be HTML-escaped.
---
<!-- /div --><!-- div --><h3 id="_templatesettingsevaluate"><code>_.templateSettings.evaluate</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L1733 "View in source") [&#x24C9;][1]
(RegExp): Used to detect code to be evaluated.
---
<!-- /div --><!-- div --><h3 id="_templatesettingsimports"><code>_.templateSettings.imports</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L1757 "View in source") [&#x24C9;][1]
(Object): Used to import variables into the compiled template.
---
<!-- /div --><!-- div --><h3 id="_templatesettingsinterpolate"><code>_.templateSettings.interpolate</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L1741 "View in source") [&#x24C9;][1]
(RegExp): Used to detect `data` property values to inject.
---
<!-- /div --><!-- div --><h3 id="_templatesettingsvariable"><code>_.templateSettings.variable</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L1749 "View in source") [&#x24C9;][1]
(string): Used to reference the data object in the template text.
---
<!-- /div --><!-- /div --><!-- div -->## `Methods`
<!-- div --><h3 id="_templatesettingsimports_"><code>_.templateSettings.imports._</code></h3>[&#x24C8;](https://github.com/lodash/lodash/blob/4.17.19/lodash.js#L1765 "View in source") [&#x24C9;][1]
A reference to the `lodash` function.
---
<!-- /div --><!-- /div --><!-- /div --> [1]: #array "Jump back to the TOC."