mirror of
https://github.com/flynx/serialize.js.git
synced 2026-07-10 19:20:56 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d24e602ac1
commit
b94cd6127c
22
README.md
22
README.md
@ -278,12 +278,34 @@ serialize([1,]) // -> '[1]'
|
|||||||
serialize([1,,]) // -> '[1,,]'
|
serialize([1,,]) // -> '[1,,]'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### BigInt
|
### BigInt
|
||||||
|
|
||||||
|
Serialized as represented in JavaScript.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
serialize(9999999999n) // -> '9999999999n'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Infinity
|
### Infinity
|
||||||
|
|
||||||
|
Serialized as represented in JavaScript
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
serialize(Infinity) // -> 'Infinity'
|
||||||
|
serialize(-Infinity) // -> '-Infinity'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Map / Set
|
### Map / Set
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
serialize(new Set([1,2,3])) // -> 'Set([1,2,3])'
|
||||||
|
serialize(new Map([['a', 1], ['b', 2]])) // -> 'Map([["a",1],["b",2]])'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Functions
|
### Functions
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user