10 lines
446 B
TypeScript
10 lines
446 B
TypeScript
import { JsonPointer, JsonPath } from "./types";
|
|
/**
|
|
* Deletes a value at specified json-pointer from data
|
|
* Note: input data is modified
|
|
*
|
|
* @param data - input data
|
|
* @param pointer - location of data to remove
|
|
* @param [keepArrayIndices] - if set to `true`, will set array element to undefined (instead of removing it)
|
|
*/
|
|
export declare function remove<T = any>(data: T, pointer: JsonPointer | JsonPath, keepArrayIndices?: boolean): T;
|