Files
30-seconds-of-code/node_modules/yurnalist/examples/inspect.js
2019-08-20 15:52:05 +02:00

17 lines
390 B
JavaScript

/* @noflow */
const report = require('../dist');
/* eslint-disable flowtype/require-return-type */
const anArray = ['some', 'values', () => 'hello', 3654, true];
const anObject = {
string: 'value',
fun: (a, b) => a + b,
number: 42,
symbol: Symbol('some symbol'),
boolean: true,
array: anArray,
};
anObject.nestedObject = Object.assign({}, anObject);
report.inspect(anObject);