recoil
Version:
Recoil - A state management library for React
18 lines (17 loc) • 529 B
Flow
/**
* 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
*/
;
/**
* Creates a new iterable whose output is generated by passing the input
* iterable's values through the mapper function.
*/
declare function mapIterable<T, K>(iterable: Iterable<T>, callback: (v: T, index: number) => K): Iterable<K>;
module.exports = mapIterable;