This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

php-to-js

0.0.5 • Public • Published

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 = [1,2,3] , var in = $array.in_array(1,arr) // in = true
Example 2:
var ordered_arr = array({3:'value'}, {2:'value'}, {'a':'value'}, {'b':'value'});
var key = array_search(/val/g, ordered_arr); // or var key = ordered_arr.search(/val/g); //returns '3'

Versions

Current Tags

VersionDownloads (Last 7 Days)Published

Version History

VersionDownloads (Last 7 Days)Published

Package Sidebar

Install

npm i php-to-js

Weekly Downloads

0

Version

0.0.5

License

none

Last publish

Collaborators

  • alvaropaco