Methods
toString()
- Source:
- See:
-
This:
Parameters:
- Source:
- Tutorials:
-
Returns:
-
Type
-
external:Object
Examples
{a:'A',b:'B'}.xEach({
success: function( item, index ) {
// return; got to the next item
// throw new Break(); stop each of items
console.log('success:', index, item );
},
complete: function() {
console.log('complete');
}
});
console.log('end');
// logs:
// success: a A
// success: b B
// complete
// end
async
{a:'A',b:'B'}.xEach({
async: true,
success: function( item, index ) {
console.log('success:', index, item );
},
complete: function() {
console.log('complete');
}
});
console.log('end');
// logs:
// end
// success: a A
// success: b B
// complete
This:
Parameters:
Name |
Type |
Attributes |
Default |
Description |
type |
external:String
|
<optional>
|
"json"
|
data format |
- Implements:
- Source:
Returns:
-
Type
-
external:String
Example
{ a: 'A' }.xTo(); // '{"a":"A"}'
This:
Parameters:
Name |
Type |
Attributes |
Description |
type |
external:String
|
<optional>
|
JavaScript type |
- Implements:
- Source:
Returns:
-
Type
-
external:String
|
external:Boolean
Example
(false).xType(); // 'Object'
(true).xType('Object'); // 'true'