Skip to main content
Module

x/rambda/is.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function is(targetPrototype, x){ if (arguments.length === 1) return _x => is(targetPrototype, _x)
return ( x != null && x.constructor === targetPrototype || x instanceof targetPrototype )}