0.2.1 • Published 10 years ago

cherry.js v0.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

cherry.js

cherry.js is a JavaScript utility library, and it can run on both browser and Node. You can use javascript more easily with cherry.js. The sample follows:

Just include this script for using:

<script src="cherry.min.js"></script>

And enjoy cherry.js:

var arr = ['a','b','c','d'];
arr.$swap(0,2);
console.log(arr); //return ['c','b','a','d'];

var obj_1 = { a:{b:1}, c:[1,2,3] };
var obj_2 = { a:{b:1}, c:[1,2,3] };
console.log( obj_1===obj_2 );     //return false;
console.log( obj_1.$equal(obj_2) );  //return true;

Use cherry.js in Node.js

Install

npm install --save-dev cherry.js

Use

require('cherry.js');

var arr = ['a','b','c','d'];
arr.$swap(0,2);
console.log(arr); //return ['c','b','a','d'];

Warning and Error types

More Infos

Home Website: http://cherryjs.com

0.2.1

10 years ago

0.2.0

10 years ago

0.1.7

10 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago