get
get :: (Any key, Collection collection) => Any valuedescription
examples
basic example
import { get } from 'conductor'
const items = ['hello', 'world']
get(1, items) // 'world'working with other data structures
import { get } from 'conductor'
const set = new Set(['hello', 'world'])
const object = { drumsticks: 2 }
const map = new Map([['drumsticks', 2]])
get('world', set) // 'world'
get('drumsticks', object) // 2
get('drumsticks', map) // 2currying
Last updated