Package Exports
- just-is-circular
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (just-is-circular) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
just-is-circular
Part of a library of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for every occasion.
import isCircular from 'just-is-circular';
const a = {};
a.b = a;
isCircular(a) // true
const a = {};
a.b = {
c: a
}
isCircular(a) // true
const a = {};
a.b = {
c: 4
}
isCircular(a) // false
const a = [];
a.push(a);
isCircular(a) // true
isCircular({}) // false
isCircular('hi') // false
isCircular(undefined) // false