Skip to main content
Module

x/rambda/propIs.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { propIs } from './propIs'
const obj = { value : 1 }const property = 'value'
test('when true', () => { expect(propIs( Number, property, obj )).toBeTrue()})
test('when false', () => { expect(propIs( String, property, obj )).toBeFalse() expect(propIs( String, property, {} )).toBeFalse()})