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">

12 lines (8 loc) 248 B
// @flow import type {Composite, Key} from "./types"; /** * Get own enumerable keys. */ const getKeys = (composite: Composite): Array<Key> => Array.isArray(composite) ? [...composite.keys()] : Object.keys(composite); export default getKeys;