angularjs-arrays
Array functions for AngularJs This functions are implemented like php functions based on performance.
Installation
- Just Download the .js file
- Include into yours index.htmlmain file like: ``` src="scripts/libs/Array.js" ```
Injection
.controller('UsersCtrl', function ($scope, $location, $route, $modal, $routeParams, $q, $array, …){
Usage
Example 1:
var arr = 123 var in = $array // in = true
Example 2:
var ordered_arr = ;var key = ; // or var key = ordered_arr.search(/val/g); //returns '3'