/attr

attribute code bricks for JavaScript

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0

Attribute code bricks for JavaScript.

License NPM version Bower version Build Status Coverage Status Dependencies Status devDependencies Status Code Climate NPM downloads per month GitHub issues Inline docs

Installation

Can be managed through duo, component, bower, or npm.

let attr = require( "@aureooms/js-attr" ) ;

Usage

( "abcd" )[attr.len] ; // 4

( new Array( 17 ) )[attr.len] ; // 17

Object.keys( { a : 0 , b : 0 , c : 0 } )[attr.len] ; // 3

( function ( a , b ) { return a + b ; } )[attr.len] ; // 2