Typedef
Static Public Summary | ||
public |
The function passed as a callback in a forEach iteration. |
|
public |
Returned object by getset |
|
public |
The function passed as a callback in a reduce iteration. |
|
public |
A dotted key is useful to quickly access a subset of data
stored into the ObjectArray as if it was still a
vanilla |
Static Public
public ForEachCallback: Function source
The function passed as a callback in a forEach iteration.
Four arguments will be provided to the callback :
public ReducerCallback: Function source
The function passed as a callback in a reduce iteration.
Four arguments will be provided to the callback :
public dottedKey: String source
A dotted key is useful to quickly access a subset of data
stored into the ObjectArray as if it was still a
vanilla Object
.
Basically, a dotted key is constructed like a chain of property
for an object.
Example:
// Create an ObjectArray with subdata
var oa = new ObjectArray({
set1: {
subset1: 'foo',
subset2: {
subsub1: 'bar',
subsub2: 'baz'
}
}
});
oa.pull('set1.subset1'); // returns 'foo'
oa.pull('set1.subset1.subsub2'); // returns 'baz'