Skip to content

nickmacavoy/next-in-sequence

Repository files navigation

next-in-sequence

Build Status dependencies Status devDependencies Status License: MIT

Given an array and an input string, find a the sequence surrounds the input string, and its next iteration

Example

const result = new NextInSequence('input3', ['input1', 'input3', 'input4'])
result.proposal will equal 'input4'
result.min will equal 'input1'
result.max will equal 'input3'

Thanks to

License

MIT © Nick MacAvoy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published