UNPKG

nested-property

Version:

Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'

33 lines (28 loc) 570 B
declare const nestedProperty: { get( object: any, property: string ): any; has( object: any, property: string, options?: { own: boolean } ): boolean; set( object: any, property: string, value: any ): any; isInNestedProperty( object: any, property: string, objectInPath: any, options?: { validPath: boolean } ): boolean; ObjectPrototypeMutationError: ErrorConstructor } export = nestedProperty;