doc: ported old doc example for Array#toJSON
This commit is contained in:
parent
d9f0a15dd5
commit
e98c87d681
|
@ -319,6 +319,11 @@ Array.from = $A;
|
|||
* Array#toJSON() -> String
|
||||
*
|
||||
* Returns a JSON string representation of the array.
|
||||
*
|
||||
* ### Example
|
||||
*
|
||||
* ['a', {b: null}].toJSON();
|
||||
* //-> '["a", {"b": null}]'
|
||||
**/
|
||||
function toJSON() {
|
||||
var results = [];
|
||||
|
|
Loading…
Reference in New Issue