@ganuz/has
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@ganuz/has

Source Code Version MIT License Bundle Size TypeScript

Has is package from Ganuz library

Install

$ yarn add @ganuz/has

Or

$ npm install --save @ganuz/has

Use

Module

import {
  default as has
} from '@ganuz/has';

Browser

<script src="https://unpkg.com/@ganuz/has/bundle.umd.min.js"></script>
let {
  has
} = G;

Examples

 has([1], 0); // => true
 has(null, 'foo'); // throw TypeError
 has(v => v, 'prototype'); // => false
 has('foo', 'toString'); // throw TypeError
 has(1, 'valueOf'); // throw TypeError
 has({color: 'green'}, 'color'); // => true
 has(Object.create({foo: 'bar'}), 'foo'); // => true

@ganuz/has/polyfill

Module

  import '@ganuz/has/polyfill';

Browser

<script src="https://unpkg.com/@ganuz/has/polyfill/bundle.umd.min.js"></script>

License

Copyright © Yisrael Eliev, Licensed under the MIT license.

Package Sidebar

Install

npm i @ganuz/has

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

93 kB

Total Files

27

Last publish

Collaborators

  • yisraelx