1.0.0 • Published 10 years ago

does-it-exist v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

does-it-exist

Build Passing NPM version

Module to check if datatype contains param passed!

###Install

npm i does-it-exist --save

###Example

var exists = require('does-it-exist');

//sample datatypes
var array = ['hello', 'World'],
  string = 'exists',
  object = {name: 'your name'};

// check array has element
exists(array, 'World'); // true
exists(array, 'earth'); // false

// check object has property
exists(object, 'name'); // true
exists(object, 'mars'); // false

// check string has letter
exists(string, 'x'); // true
exists(string, 'w'); // false
1.0.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago