0.1.1 • Published 8 years ago

apal v0.1.1

Weekly downloads
2
License
BSD-3-Clause
Repository
github
Last release
8 years ago

Another Property Access Library

What is that ?

This is one more library for nested property access within Javascript objects. It is aimed to be straightforward, predictable and fast without any additional overhead. It is intentionally written in a bit simpler way in hope to be faster in certain cases.

How to install it ?

npm install apal

How to use it ?

var apal = require('apal');

var myObject = {
  name: 'John',
  notifications: {
    email:  true,
    phone:  true
  }
};

var emailNotifications = apal.get(myObject, ['notifications', 'email']);

apal.set(myObject, ['notifications', 'personal', true]);
0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago