@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 (7 loc) • 328 B
Flow
// @flow
import {hasIn} from "@jumpn/utils-composite";
import type {Notifier} from "../types";
const findIndex = (notifiers: Array<Notifier<any>>, key: string, value: any) =>
// $FlowFixMe: flow is having some troubles to match hasIn signature (curry)
notifiers.findIndex(hasIn([key], value));
export default findIndex;