@geeeger/nesting
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

nesting

防止嵌套数据结构有误的小工具

Usage

import Nesting from '@geeeger/nesting';

describe('test', () => {
    test('should pass', () => {
        const data = {
            a: 1,
        };

        const nest = new Nesting(data);
        expect(nest.get('a')).toEqual(1);
        expect(nest.get('a.b')).toEqual('');
    });
});

Readme

Keywords

Package Sidebar

Install

npm i @geeeger/nesting

Weekly Downloads

1

Version

2.0.7

License

ISC

Unpacked Size

3.2 kB

Total Files

4

Last publish

Collaborators

  • geeeger