My favorites | Sign in
Project Logo
                
Code license: MIT License
Labels: jQuery, Prototype, array, protify
Show all Featured downloads:
jquery.protify-0.3.js
Feeds:
People details
Project owners:
  seasoup

This jQuery plugin creates and array with Prototypes array and enumerable functions, and allows chaining the way that Prototype does.

Syntax: // this does not extend the array.

var arr = [1,2,3,4,5,6]; $.protify(arr).findAll(function(a) { return a <=3 }); // --> [1,2,3]

//this does extend the array, but only for this object.

$.protify(arr, true); arr.findAll(function(a) { return a <=3 }); // --> [1,2,3]

[1,2,3,4,5,6].findAll(function(a) { return a <=3 }); // --> error, findAll is not a function









Hosted by Google Code