@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 (7 loc) • 333 B
Flow
// @flow
import {remove as arrayRemove} from "@jumpn/utils-array";
import findIndex from "./findIndex";
import type {Notifier} from "../types";
const remove = (notifier: Notifier<any>) => (notifiers: Array<Notifier<any>>) =>
arrayRemove(findIndex(notifiers, "request", notifier.request), 1, notifiers);
export default remove;