get-truthy
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

get-truthy

Show me a binary operator and a value, I'll show you another value to make it truthy.

Build Status Coverage Status

Usage

? > 9

import getTruthy from 'get-truthy'
 
getTruthy.left('>', 9)
// 10

9 > ?

import getTruthy from 'get-truthy'
 
getTruthy.right('>', 9)
// 8

Supported Operators

Relational > < >= <=

Equality == === != !==

Arithmetic + - * / % **

Logical && ||

Development

  • tests - yarn test
  • watch - yarn watch
  • dev mode - yarn dev --inspect
  • lint - yarn lint

Readme

Keywords

none

Package Sidebar

Install

npm i get-truthy

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

149 kB

Total Files

61

Last publish

Collaborators

  • reergymerej