-
Notifications
You must be signed in to change notification settings - Fork 0
All
Malexion edited this page Oct 31, 2016
·
6 revisions
-
obj
Object to iterate over, can be anything that can be enumerated for in, arrays and numbers are handled differently. -
func
Functional iterator passed (value, key, event). -
value
Raw value of the iteration. -
key
Respective key under which you can find the value. -
event
Event options,{ stop: false }
allows you to prematurely stop the iteration. -
[all]
[Optional] param, signifies to not check HasOwnProperty() which is in place for prototype modification protection.
__.all({ item: 1, key: 'pair' }, (value, key, event) => {
console.log(key);
event.stop = true;
});
__.all([ 45, 406, 100, 1, -20, { key: 'pair' }], (value, key, event) => {
console.log(value);
});
__.all(5, (count, total, event) => {
console.log('{0}/{1}'.format(count, total));
})
- Home
- String Prototype Functions
- Replace All
- Replace While
- Format
- Contains
- Whiteout
- Capitalize
- First Word
- Truncate
- Base Functions
- All
- Class
- Contains
- Count
- Debounce
- Deep All
- Distinct
- Enum
- First
- Filter
- Fuse
- Get Type
- Group
- Index
- Intersect
- Last
- Map
- Match
- Move
- Options
- Get Property
- Rank
- Remove
- Remove At
- Scope
- Search
- Sort
- Switch
- Throttle
- Formats
- Pad Left
- Pad Right
- Type Detection
- Defined
- Set
- Same Type
- Function
- Object
- Array
- Arguments
- Boolean
- String
- Number
- Date
- Null
- Undefined
- NaN
- Math
- Random 16-bit
- Round To
- Round Down To
- Round Up To
- Median
- Sum
- Average
- Max
- Min
- Between
- Percentage
- Generators
- Guid
- Password
- Classes
- Overwrite
- Updatable