UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

18 lines (17 loc) 308 B
import { is } from 'ramda'; /** * Returns true if the argument is an instance of Error. * * @func * @category Type * * @example * * R_.isError(new Error()) // true * R_.isError(null) // false * * @sig a -> Boolean * */ var isError = /*#__PURE__*/is(Error); export default isError;