code-stringify
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -79,3 +79,3 @@ | ||
function apply_replacer (value, replacer) { | ||
if (node_util.isFunction(replacer)) { | ||
if (typeof replacer === 'function') { | ||
var input = { | ||
@@ -82,0 +82,0 @@ '': value |
{ | ||
"name": "code-stringify", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "code-stringify is node.js module that converts JavaScript variables into source codes. Unlike JSON.stringify, code-stringify converts things into strings of code, not JSON.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -103,3 +103,3 @@ [![Build Status](https://travis-ci.org/kaelzhang/node-code-stringify.svg?branch=master)](https://travis-ci.org/kaelzhang/node-code-stringify) | ||
value | JSON.stringify(value) | code(value) | | ||
value | JSON.stringify(value) | code(value) | comment | ||
----- | --------------------- | ----------- | ---------- | ||
@@ -110,4 +110,4 @@ `1` | `'1'` | `'1'` | | ||
`null` | `'null'` | `'null'` | | ||
[undefined] | `[null]` | `[undefined]` | | ||
[null] | `[null]` | `[null]` | | ||
`[undefined]` | `[null]` | `[undefined]` | | ||
`[null]` | `[null]` | `[null]` | | ||
@@ -114,0 +114,0 @@ - `JSON.stringify` makes JSON. |
14277