JSPM

is-cyclical

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q32586F
  • License ISC

Returns true if an array is cyclical at a specified value.

Package Exports

  • is-cyclical

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 (is-cyclical) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

isCyclical

Returns true if an array will continue to be cyclical if a value is pushed onto it.

Demo

isCyclical([1,2,3,1,2,3],1)
//returns true

if the array were [1,2,3,1,2,3] and the value added were 2 that would break the cycle therefore return false