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

11 lines (8 loc) 280 B
"use strict"; var findKey = require("./find-key") , isValue = require("./is-value"); // eslint-disable-next-line no-unused-vars module.exports = function (obj, cb /*, thisArg, compareFn*/) { var key = findKey.apply(this, arguments); return isValue(key) ? obj[key] : key; };