Get, set, or delete a property from a nested object using a dot path
MIT License
Bot releases are hidden (Show)
https://github.com/sindresorhus/dot-prop/compare/v8.0.1...v8.0.2
deepKeys
to not throw on sparse arrays f21b68ehttps://github.com/sindresorhus/dot-prop/compare/v8.0.0...v8.0.1
deepKeys()
include empty arrays and objects (#105) 49e9082https://github.com/sindresorhus/dot-prop/compare/v7.2.0...v8.0.0
deepKeys()
(#94) 3902c64https://github.com/sindresorhus/dot-prop/compare/v7.1.1...v7.2.0
https://github.com/sindresorhus/dot-prop/compare/v7.1.0...v7.1.1
escapePath()
(#90) 0505e98https://github.com/sindresorhus/dot-prop/compare/v7.0.0...v7.1.0
'a.0'
. This no longer works. Use 'a[0]'
instead.const {get} = require('dot-prop')
→ import {getProperty} from 'dot-prop'
const {set} = require('dot-prop')
→ import {setProperty} from 'dot-prop'
const {has} = require('dot-prop')
→ import {hasProperty} from 'dot-prop'
const {delete: delete_} = require('dot-prop')
→ import {deleteProperty} from 'dot-prop'
https://github.com/sindresorhus/dot-prop/compare/v6.0.1...v7.0.0
https://github.com/sindresorhus/dot-prop/compare/v6.0.0...v6.0.1
https://github.com/sindresorhus/dot-prop/compare/v5.3.0...v6.0.0
.delete()
return a boolean (#66) 24916ffhttps://github.com/sindresorhus/dot-prop/compare/v5.2.0...v5.3.0
undefined
as the object for .get()
and .has()
(#58) a6be343https://github.com/sindresorhus/dot-prop/compare/v5.1.1...v5.2.0
https://github.com/sindresorhus/dot-prop/compare/v5.1.0...v5.1.1
Maintenance release to update dependencies. No user-facing changes.
https://github.com/sindresorhus/dot-prop/compare/v5.0.1...v5.1.0
https://github.com/sindresorhus/dot-prop/compare/v5.0.0...v5.0.1
Breaking:
Enhancements:
https://github.com/sindresorhus/dot-prop/compare/v4.2.0...v5.0.0