javascript-stringify icon indicating copy to clipboard operation
javascript-stringify copied to clipboard

Restore properties on a function

Open blakeembrey opened this issue 7 years ago • 0 comments

Currently it's just stringifying the function - I should really be using Function.prototype.toString and restoring the function properties though (since a function is just another object).

Edit: Also for RegExp.

blakeembrey avatar Aug 19 '16 09:08 blakeembrey