UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

5 lines 290 B
import { T, cond, always, unary } from 'ramda'; import isFunction from './isFunction'; export var formatJSVal = /*#__PURE__*/cond([[function (x) { return x === null; }, /*#__PURE__*/always('null')], [isFunction, /*#__PURE__*/always('function')], [T, /*#__PURE__*/unary(JSON.stringify)]]);