Notoriously Psychedelic Modules

npm

Need private packages and team management tools?Check out npm Orgs. »

contiguous

1.0.2 • Public • Published
var contiguous = require('contiguous')
var assert = require('assert')
 
var isX = function(value) {
  return value === 'x'
}
 
assert(contiguous(['x', 'x'], isX) === true)
 
assert(contiguous(['x', 'y'], isX) === false)
 
assert(contiguous(['y', 'x'], isX) === false)
 
assert(contiguous([], isX) === false)
 
assert(contiguous(['x'], isX) === false)
 
assert(contiguous(['y'], isX) === false)

install

npm i contiguous

Downloadsweekly downloads

426

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability