Skip to content

enigmamarketing/dots2brackets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dots 2 Brackets

converts a dot notation object into a bracket notation. The main goal was to be able to use some variables with angular.

data.example.12345.title

will be converted to

data['example']['12345']['title']

Usage

var dots2brackets = require('dots2brackets'),
    varName = dots2brackets('data.example.12345.title');

About

converts dot notation objects to bracket notation

Resources

License

Stars

Watchers

Forks

Packages

No packages published