UNPKG

recoil

Version:

Recoil - A state management library for React

18 lines (17 loc) 519 B
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+recoil * @flow strict * @format */ 'use strict'; /** * Returns a set containing all of the values from the original set where * the given callback returned true. */ declare function filterSet<TValue>(set: $ReadOnlySet<TValue>, callback: (value: TValue) => boolean): Set<TValue>; module.exports = filterSet;