Nth Permutation Mathematics

    just-is-circular
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.1 • Public • Published

    just-is-circular

    Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

    🍦 Try it

    npm install just-is-circular
    yarn add just-is-circular

    NOTE: not supported in IE or microsoft edge

    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

    Install

    npm i just-is-circular

    DownloadsWeekly Downloads

    2

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    4.57 kB

    Total Files

    8

    Last publish

    Collaborators

    • angus-c