mirror of
https://github.com/flynx/serialize.js.git
synced 2026-07-10 03:00:57 +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,,]'
|
||||
```
|
||||
|
||||
|
||||
### BigInt
|
||||
|
||||
Serialized as represented in JavaScript.
|
||||
|
||||
```javascript
|
||||
serialize(9999999999n) // -> '9999999999n'
|
||||
```
|
||||
|
||||
|
||||
### Infinity
|
||||
|
||||
Serialized as represented in JavaScript
|
||||
|
||||
```javascript
|
||||
serialize(Infinity) // -> 'Infinity'
|
||||
serialize(-Infinity) // -> '-Infinity'
|
||||
```
|
||||
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user