Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 353 Bytes

File metadata and controls

6 lines (4 loc) · 353 Bytes

toSource.js

A polyfill for Mozilla's Object.toSource() method. Returns the equivalent JavaScript source code (not JSON) for a JavaScript Object, Number, Boolean, String, RegExp, Date or Function.

See the Mozilla docs for more information.