Home
last modified time | relevance | path

Searched refs:replaceValue (Results 1 – 6 of 6) sorted by relevance

/expo/packages/create-expo/src/utils/__tests__/
H A Darray.test.ts1 import { replaceValue } from '../array';
3 describe(replaceValue, () => {
5 expect(replaceValue([1, 2, 3], 1, 2)).toEqual([2, 2, 3]);
6 expect(replaceValue([1, 2, 3], 4, 5)).toEqual([1, 2, 3]);
/expo/packages/@expo/cli/src/utils/__tests__/
H A Darray-test.ts1 import { findLastIndex, groupBy, intersecting, replaceValue } from '../array';
19 describe(replaceValue, () => {
21 expect(replaceValue([1, 2, 3], 1, 2)).toEqual([2, 2, 3]);
22 expect(replaceValue([1, 2, 3], 4, 5)).toEqual([1, 2, 3]);
/expo/packages/create-expo/src/utils/
H A Darray.ts1 export function replaceValue<T>(values: T[], original: T, replacement: T): T[] { function
H A Dargs.ts6 import { replaceValue } from './array';
125 args = replaceValue(args, arg, alias);
/expo/packages/@expo/cli/src/utils/
H A DresolveArgs.ts3 import { replaceValue } from './array';
142 args = replaceValue(args, arg, alias);
H A Darray.ts17 export function replaceValue<T>(values: T[], original: T, replacement: T): T[] { function