Sha256: aae82acf1eed60249c293761b3f2bf1fff19257f0f385a96a9ba879b76825850
Contents?: true
Size: 278 Bytes
Versions: 96
Compression:
Stored size: 278 Bytes
Contents
/* global test expect */ const objectify = require('../objectify') test('Get object from a string path', () => { const object = { foo: { bar: { x: 1 } } } expect(objectify('foo.bar', object)).toEqual({ x: 1 }) expect(objectify('some.bar', object)).toEqual(undefined) })
Version data entries
96 entries across 95 versions & 13 rubygems