UNPKG

@dillonkearns/elm-graphql

Version:

<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">

13 lines (8 loc) 253 B
// @flow import {curry} from "flow-static-land/lib/Fun"; import type {Composite, Key} from "./types"; /** * Get property value of given key. */ const get = (key: Key, composite: Composite): any => composite[(key: any)]; export default curry(get);