MCPcopy Index your code
hub / github.com/jaredpalmer/formik / push

Method push

packages/formik/src/FieldArray.tsx:33–33  ·  view source on GitHub ↗

Imperatively add a value to the end of an array

(obj: X)

Source from the content-addressed store, hash-verified

31export interface ArrayHelpers<T extends any[] = any[]> {
32 /** Imperatively add a value to the end of an array */
33 push<X extends T[number] = T[number]>(obj: X): void;
34 /** Curried fn to add a value to the end of an array */
35 handlePush<X extends T[number] = T[number]>(obj: X): () => void;
36 /** Imperatively swap two values in an array */

Callers 13

addFriendsFunction · 0.80
ComponentFunction · 0.80
setupTests.tsFile · 0.80
FieldArrayInnerClass · 0.80
arrayMergeFunction · 0.80
next.config.jsFile · 0.80
navigateFunction · 0.80
onClickFunction · 0.80
DocsFunction · 0.80
getPathsFunction · 0.80

Calls

no outgoing calls

Tested by 2

addFriendsFunction · 0.64
ComponentFunction · 0.64