@taufik-nurrohman/has

1.0.0 • Public • Published

Conditional Utility

Usage

CommonJS

const {hasValue} = require('@taufik-nurrohman/has');

console.log(hasValue('foo', ['foo', 'bar', 'baz']));

ECMAScript

import {hasValue} from '@taufik-nurrohman/has';

console.log(hasValue('foo', ['foo', 'bar', 'baz']));

Methods

hasKey(key, object)

hasObjectKey(key, object)

hasObjectValue(key, object)

hasString(x, string, ?start)

hasStringStart(x, string, ?start)

hasStringEnd(x, string, ?end)

hasValue(value, array)

Readme

Keywords

Package Sidebar

Install

npm i @taufik-nurrohman/has

Weekly Downloads

151

Version

1.0.0

License

MIT

Unpacked Size

3.4 kB

Total Files

5

Last publish

Collaborators

  • taufik-nurrohman