ramda APIs
- equals
- curry
- filter
- prop
- compose
- isEmpty
- always
- map
- cond
- pick
- path
- toPairs
- complement
- isNil
- reject
- reduceBy
- split
- values
- pipe
- either
- ifElse
- keys
- propEq
- assoc
- pluck
- is
- unless
- __
- identity
- o
- when
- not
- flatten
- sort
- test
- head
- contains
- reduce
- anyPass
- nth
- both
- concat
- useWith
- of
- splitEvery
- includes
- without
- intersection
- any
- applyTo
- difference
- identical
- pathEq
- clone
- groupBy
- hasPath
- propOr
- pathSatisfies
- pipeWith
- uniqBy
- lte
- and
- has
- mapObjIndexed
- indexBy
- defaultTo
- chain
- differenceWith
- andThen
- dissoc
- join
- mergeAll
- or
- into
- descend
- pathOr
- indexOf
- T
- fromPairs
- omit
OtherRelated APIs
ramda#hasPath JavaScript Examples
The following examples show how to use
ramda#hasPath.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: fhir-references.js From discovery-mobile-ui with MIT License | 6 votes |
referenceMap = {
// each key is a "type" (but not the referenced _resource_ type, eg: "Practitioner")
// each value operates on a FHIR resource, and returns an Array of reference Objects
serviceProvider: compose(
(result) => (result ? [result] : []),
path(['serviceProvider']),
),
requester: compose(
(result) => (result ? [result] : []),
path(['requester']), // may or may not be practitioner?
),
participant: compose(
map(path(['individual'])), // may or may not be practitioner?
filter(hasPath(['individual', 'reference'])),
propOr([], 'participant'),
),
}