You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A.dropWhile drops ALL items matching the predicate. It behaves exactly like A.reject:
import{A,D}from"@mobily/ts-belt"console.log(A.dropWhile([0,1,0,0,0],(x)=>x==0),// should drop the first zeroA.reject([0,1,0,0,0],(x)=>x==0),// should drop all zerosA.dropWhile([{},{foo: "Bar"},{},{},{}],(x)=>D.isEmpty(x)),// should drop the first empty objA.reject([{},{foo: "Bar"},{},{},{}],(x)=>D.isEmpty(x)),// should drop all empty objs)
A.dropWhile
drops ALL items matching the predicate. It behaves exactly likeA.reject
:The text was updated successfully, but these errors were encountered: