UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

26 lines (23 loc) 445 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ramda = require("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 = (0, _ramda.is)(Error); var _default = isError; exports.default = _default;