Best Period Picker

jQuery Array Utilities version 0.0.2

101

Use the set operations UNION, INTERSECT, EXCEPT, known from SQL, to extract data from arrays. DISTINCT is also available to extract an array with distinct values. This plugin has been heavily tested. There are several automated tests for each method in this plugin. 

Usage

In your web page:

<script src="/<a href="http://code.jquery.com/jquery.min.js" "="">http://code.jquery.com/jquery.min.js"</a>></script>
<script src="/yourFolder/jquery.arrayUtilities.min.js"></script>

Examples

Distinct

$.distinct([1, 2, 2, 3])

gives the result [1,2,3]

Union

$.union([1, 2, 2, 3], [2, 3, 4, 5, 5])

gives the result [1,2,3,4,5]

Intersect

$.intersect([1, 2, 2, 3], [2, 3, 4, 5, 5])

gives the result [2,3]

Except

$.except([1, 2, 2, 3], [2, 3, 4, 5, 5])

gives the result [1]


Tags



Changelog

24 Apr 2013 version 0.0.1
  • Publishing issues
  • Getting ready publishing. Manifest created
  • Minor documentation changes
  • More documentation
  • Referencce to the latest jQuery library in test html file
  • Better API documentation
  • Lisence info (MIT)
  • Better documentation i README
  • Improved readme plus compressed production js file
  • README improvement
  • Better README
  • The very first version

Similar plugins

Contextualize

A jQuery plugin for contextualizing in-content links.

DP Number Picker

A JavaScript Object that is used to validate input data using jQuery.

tableOperations

Easily create tables with select-able rows, and operations that can be performed on the selected...

jQuery++

I am a MIT licensed collection of extremely useful DOM helpers and special events for jQuery 1.8...

jQuery Random Class

jQuery plugin for generating random class names

jQuery randomArray

jQuery plugin for generating random array with positive int elements.

randomizer

jQuery plugin that give you functions to get/set random values or call random functions.

NewHeights

jQuery plugin, for responsive pages, to set tags to same height. Happens during/after browser...

slotbucket.js

Assigning content to locations in HTML according to a set of rules, e.g. to accomplish responsive...

jQuery.serializeJSON()

Serializes a form into a JavaScript Object with the same format as the default Ruby on Rails...

jQuery formHelp

jQuery utility plugin providing contextual help on inputfields in a form

Macaroon

A jQuery plugin for simple access to browser cookies. Part of the Formstone Library.

Rubberband

A jQuery plugin for responsive media query events. Part of the Formstone Library.

Zoetrope

A requestAnimationFrame polyfill and jQuery Animation shim. Part of the Formstone Library.

Menu Consume

A jQuery plugin to move overflowing menu items into a dropdown menu item that works also in a...

JavaScript Utilities

A suite of utilities for JavaScript and jQuery, which includes tools for validating, text...

Audero Text Changer

Audero Text Changer is a very lightweight (minimized version is less than 1Kb) jQuery Mobile...

jListQuery

jListQuery is a jQuery plugin that provides a fluent interface to query JSON/JavaScript...

WebryOne.js for jQuery

I can be easily implemented in the Web site of your UI, such as 3D-room Addressed to Responsive...

noscroll

jquery plugin for disabling scrolling
comments powered by Disqus