{"_id":"o-dot","_rev":"6-31514e23e974aa7d89fbc8c6d69397d8","name":"o-dot","description":"Some extra functions for collections.","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"o-dot","version":"0.1.0","dependencies":{"grunt":"~0.4.1","grunt-contrib-watch":"~0.5.3","jasmine-node":"~1.3.1","grunt-contrib-uglify":"~0.4.0","grunt-contrib-jshint":"~0.10.0","grunt-jasmine-node":"~0.2.1"},"description":"=== ***Note:** This package still on development.*","_id":"o-dot@0.1.0","dist":{"shasum":"10b5859a7334eb8c99706ecd4b239c3e045c48a2","tarball":"https://registry.npmjs.org/o-dot/-/o-dot-0.1.0.tgz","integrity":"sha512-fV2Vdwj1Eiu59EIWI5L1ar87V2xqzX1Fa8plAgeB+mjzfHeb5Cu0iqwdq6Qdt96QYMtACOyILFMF9QYiLeBz0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7sxjfcLXSnmdR/7jwj5PLDu3Z6VtAzogxMq4A2f6mVQIgfykLpQTppZTzuMNfDM/3iVCI0Ur2NkazbAqBewbWv6o="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tonymtz","email":"atony.mtz@gmail.com"},"maintainers":[{"name":"tonymtz","email":"atony.mtz@gmail.com"}]},"0.1.1":{"name":"o-dot","version":"0.1.1","main":"dist/o.min.js","description":"Some extra functions for collections.","repository":{"type":"git","url":"git@github.com:TonyMtz/o-dot.git"},"keywords":[],"author":{"name":"TonyMtz"},"license":"MIT","dependencies":{"grunt":"~0.4.1","grunt-contrib-watch":"~0.5.3","jasmine-node":"~1.3.1","grunt-contrib-uglify":"~0.4.0","grunt-contrib-jshint":"~0.10.0","grunt-jasmine-node":"~0.2.1"},"bugs":{"url":"https://github.com/TonyMtz/o-dot/issues"},"homepage":"https://github.com/TonyMtz/o-dot","_id":"o-dot@0.1.1","dist":{"shasum":"129e92f559d22412d21db745c71bf84ee6b8f1ea","tarball":"https://registry.npmjs.org/o-dot/-/o-dot-0.1.1.tgz","integrity":"sha512-xcS0YO4TxngHzZzFIk7jnauJHJeAnH1li9Bqqr8fxUHBsz8BwRKoPDSEwk1EaqxeLYayftwZPf5fVSw+PY4mvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+0puazvct/4pAyFI8wEXmju2hq+FkgHOHW2Y+MLxtMAiAOKhyGPamJgg6+13VSF9jC0FLZ6vZzO/guFHJdBWT8mA=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tonymtz","email":"atony.mtz@gmail.com"},"maintainers":[{"name":"tonymtz","email":"atony.mtz@gmail.com"}]}},"readme":"#<a name='title'>O.dot</a> [![Build Status](https://travis-ci.org/TonyMtz/o-dot.svg?branch=master)](https://travis-ci.org/TonyMtz/o-dot)\n===\n***Note:** This package still on development.*\n\nSome extra functions for collections. All functions will not modify the original collection. All functions are focused more on performance than compatibility.\n\n## <a name='toc'>Table of Contents</a>\n\n  1. [Installation](#installation)\n  1. [Usage](#usage)\n  1. [Functions](#functions)\n    * [each](#each)\n    * [where](#where)\n    * [any](#any)\n    * [select](#select)\n    * [take](#take)\n    * [skip](#skip)\n    * [first](#first)\n    * [last](#last)\n    * [count](#count)\n    * [index](#index)\n    * [pluck](#pluck)\n    * [sum](#sum)\n    * [max](#max)\n    * [min](#min)\n    * [flatten](#flatten)\n    * [map](#map)\n    * [filter](#filter)\n  1. [Utils](#utils)\n    * [extend](#extend)\n    * [mixin](#mixin)\n  1. [Known bugs](#bugs)\n\n####[[⬆]](#toc) <a name='installation'>Installation:</a>\nSave the file [JSArrayExtended.min.js](https://raw.githubusercontent.com/TonyMtz/JSArrayExtended/master/dist/JSArrayExtended.min.js) somewhere in your project and import it.\n\nIf HTML page, you cant import it with something like:\n\n```\n<script src=\"./path_to_file/o.js\"></script>\n```\n\nElse, in Nodejs you can import it with this:\n\n```\nrequire('./path_to_file/o');\n```\nEasy, right?\n\n####[[⬆]](#toc) <a name='usage'>Usage:</a>\n\nOnce you've imported the file, the Array prototype is augmented with all functions. Don't be worried about overwrite prototype's original functionality, the script automatically will check if each function already exists.\n\n####[[⬆]](#toc) <a name='functions'>Functions:</a>\n\n<a name='each'>each(callback)</a>\n\nIterates over the array elements and invokes the given callback function. The callback is bound to array's context, when invoked receives two arguments, the item and the index of the item in the array.\n\n```\no.each([1, 2, 3], function (element) { console.log(element); });\n\n>> 123\n```\n\n<a name='where'>where(spec)</a>\n\nCreates a new array that contains all the elements that satisfies the given specification. The spec is a callback function actually, it should return a boolean to decide if a element shall or not be included in the new array.\n\n```\no.where([1, 2, 3], function (element) { return 2 > element; });\n\n>> 3\n```\n\n<a name=''></a>\n\nWorking...\n\n####[[⬆]](#utils) <a name='bugs'>Utils:</a>\n\nWorking...\n\n####[[⬆]](#toc) <a name='bugs'>Known Bugs:</a>\n\nWorking...\n\n####[[⬆]](#toc) <a name='future'>The Future of the Application:</a>\n\nWorking...\n\nThis package still on development.\n- tonymtz\n","maintainers":[{"name":"tonymtz","email":"atony.mtz@gmail.com"}],"time":{"modified":"2022-06-22T15:06:07.599Z","created":"2014-05-27T05:10:24.309Z","0.1.0":"2014-05-27T05:10:24.309Z","0.1.1":"2014-05-27T05:24:02.315Z"},"readmeFilename":"README.md","homepage":"https://github.com/TonyMtz/o-dot","keywords":[],"repository":{"type":"git","url":"git@github.com:TonyMtz/o-dot.git"},"author":{"name":"TonyMtz"},"bugs":{"url":"https://github.com/TonyMtz/o-dot/issues"},"license":"MIT"}