Skip to content

v1.0.3 - Fixed `assert` methods

Compare
Choose a tag to compare
@sc0ttj sc0ttj released this 08 Mar 23:16
· 51 commits to master since this release
  • assert.truthy() - checks if something is truthy
  • assert.falsey() - checks if something is falsey
  • assert.eq() - uses the == comparison (alias of assert.equals())
  • assert.strictEquals() - uses the === comparison
  • assert.deepEquals() - uses the react-fast-compare deep equals comparison
  • assert.isType() - uses a typeof comparison
  • assert.isImmutable() - checks if something is a Boolean, Number, String, Null
  • assert.isMutable() - checks if something is an Object, Array, Function, Class, Map, or Set
  • assert.isReactElement() - checks object contains $$typeof = REACT_ELEMENT_TYPE