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

0.2.1 • Public • Published

@pakal/tryify

Source Code Version MIT License Bundle Size TypeScript

Tryify is package from Pakal library

Install

$ yarn add @pakal/tryify

Or

$ npm install --save @pakal/tryify

Use

Module

import {
  default as tryify
} from '@pakal/tryify';

Browser

<script src="https://unpkg.com/@pakal/tryify/bundle.umd.min.js"></script>
let {
  tryify
} = _;

Examples

 tryify(function(){})(); // => true
 tryify(() => false)(); // => true
 tryify(function(){
     throw TypeError
 })(); // => false
 tryify(Object.prototype.hasOwnProperty).call(null, 'foo'); // => false

License

Copyright © Yisrael Eliev, Licensed under the MIT license.

Package Sidebar

Install

npm i @pakal/tryify

Weekly Downloads

7

Version

0.2.1

License

MIT

Unpacked Size

18.7 kB

Total Files

15

Last publish

Collaborators

  • yisraelx