pretty-var-export
Version:
Export any value to valid and equivalent JavaScript code
11 lines (8 loc) • 327 B
text/typescript
import ArrayHandler from '../Array/ArrayHandler.js';
const argumentsHandler = {
test: value => Object.prototype.toString.call(value) === '[object Arguments]',
format: (value, level, seen, indent, walk) => {
return ArrayHandler.format(Array.from(value), level, seen, indent, walk);
},
};
export default argumentsHandler;