Creates an insert operation that prepends the provided items.
insert
The items to prepend.
An insert operation for adding a value to the start of an array. https://www.sanity.io/docs/http-patches#refAUsf0
const prependFoo = prepend('foo')const prependObject = prepend({name: 'foo'})const prependObjects = prepend([{name: 'foo'}, [{name: 'bar'}]]) Copy
const prependFoo = prepend('foo')const prependObject = prepend({name: 'foo'})const prependObjects = prepend([{name: 'foo'}, [{name: 'bar'}]])
Creates an
insert
operation that prepends the provided items.