Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taufik-nurrohman/has
Conditional utility.
https://github.com/taufik-nurrohman/has
condition has helper if node utility
Last synced: 17 days ago
JSON representation
Conditional utility.
- Host: GitHub
- URL: https://github.com/taufik-nurrohman/has
- Owner: taufik-nurrohman
- License: mit
- Created: 2020-11-19T02:02:17.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-01T13:16:53.000Z (over 2 years ago)
- Last Synced: 2024-05-02T00:23:23.916Z (6 months ago)
- Topics: condition, has, helper, if, node, utility
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Conditional Utility
===================Usage
-----### CommonJS
~~~ js
const {hasValue} = require('@taufik-nurrohman/has');console.log(hasValue('foo', ['foo', 'bar', 'baz']));
~~~### ECMAScript
~~~ js
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)