Last active
February 18, 2019 10:00
-
-
Save wan2land/136749c3d22aeccf4b70a04eca678d3e to your computer and use it in GitHub Desktop.
medium-json-parser-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const obj = { | |
isregexp: /email/, | |
isinfinity: Infinity, | |
isninfinity: -Infinity, | |
isnan: NaN, | |
} | |
JSON.stringify(obj) // '{"isregexp": {}, "isinfinity":null,"isninfinity":null,"isnan":null} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment