You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
406 B

4 years ago
export const tests = []
const t = (f) => tests.push(f)
t(() => circular.constructor === Object)
t(() => circular.circular === circular)
t(() => circular.circular.circular === circular)
t(() => circular.circular.circular.circular === circular)
t(() => circular.circular.circular.circular.circular === circular)
/*
To understand recursion,
one must first understand recursion.
*/
Object.freeze(tests)