Skip to main content
Module

x/rambda/pathOr.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { curry } from './curry'import { defaultTo } from './defaultTo'import { path } from './path'
function pathOrFn( defaultValue, list, obj){ return defaultTo(defaultValue, path(list, obj))}
export const pathOr = curry(pathOrFn)