a lot of functions to make Array easy
Parse and stringify JSON with comments. It will retain comments even after saved!
Array manipulation, ordering, searching, summarizing, etc.
Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.
An ES7/ES2016 spec-compliant `Array.prototype.includes` shim/polyfill/replacement that works as far down as ES3.
A simple list of possible Typed Array names.
Is this value a JS ArrayBuffer?
Is this value a JS SharedArrayBuffer?
Robustly get the byte offset of a Typed Array
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
`Array.prototype.concat`, but made safe by ignoring Symbol.isConcatSpreadable
Robustly get the byte length of a Typed Array
Robustly get the length of a Typed Array
Get the ArrayBuffer out of a TypedArray, robustly.
read and write binary structures and data types
General purpose glob-based configuration matching.
Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.
Parse postgres array columns
Simple javascript lib for converting a [comma || space] delimited string to an array
This is a pure-js JSON streaming parser for node.js
Run an array of functions in parallel
Flatten nested arrays
TypeScript definitions for d3-array
Guarantees an array back
Depth is a utility gem for dealing with nested hashes and arrays
Some tools to deal with time based arrays
An AndAnd style gem for dealing with nested Arrays and Hashes
Red Colors provides a wide array of features for dealing with colors. This includes conversion between colorspaces, desaturation, and parsing colors.
Treat your dataset like a: * stream of lines when it's efficient to process by lines * stream of field arrays when it's efficient to deal directly with fields * stream of lightweight objects when it's efficient to deal with objects Wukong is friends with Hadoop the elephant, Pig the query language, and the cat on your command line.
The gem will deal with string and array
Treat your dataset like a: * stream of lines when it's efficient to process by lines * stream of field arrays when it's efficient to deal directly with fields * stream of lightweight objects when it's efficient to deal with objects Wukong is friends with Hadoop the elephant, Pig the query language, and the cat on your command line.
Treat your dataset like a: * stream of lines when it's efficient to process by lines * stream of field arrays when it's efficient to deal directly with fields * stream of lightweight objects when it's efficient to deal with objects Wukong is friends with Hadoop the elephant, Pig the query language, and the cat on your command line.
Treat your dataset like a: * stream of lines when it’s efficient to process by lines * stream of field arrays when it’s efficient to deal directly with fields * stream of lightweight objects when it’s efficient to deal with objects Wukong is friends with Hadoop the elephant, Pig the query language, and the cat on your command line.
If you have to work with lists of ISO 3166-1 alpha-2 country codes that sometimes include fake codes that should be expanded to a longer list, e.g. 'EU', or if you have to deal with lists of territory metadata like 'EU -FR' then territorial will help. It defines some commonly seen default expansion codes, and allows you to correctly expand a string like 'EU -FR' into an array of 2-letter country codes
Mutability is a module that provides the very simple ability to designate an "original" version of an object that is frozen, and will not change even if the working copy of the object does. The best example is a Hash or Array -- collections like those exist partly so they can be mutated in some way, either by adding or removing elements or changing their order. Now, rather than having to establish a separate "original" version of the object (not to mention dealing with the whole ivars-act-like-pointers-and-can-get-magically-changed-oops problem), you can use a MutableHash or MutableArray, and then change it to your heart's content. The MutableHash/Array are built from the Mutability mix-in, so downloading this gem also provides a library for you to add the same capabilities to any other Class you might want. Also included is the ability to revert to the original form with a single method call.
= rspec-multi-matchers == Summary * test collection using each or other enumerable methods * makes testing more natural and have a friendlier failure message == HomePage * http://github.com/gregwebs/rspec-multi-matchers == DESCRIPTION: require 'rubygems' require 'spec' require 'rspec_multi_matchers' describe 'array of ones' do it 'should be all ones' do [1,2,3].should each { |n| n.should == 1 } end # this is a new shortcut for a smaller use case it 'should be all ones' do [1,1,1].should each be_eql(1) end end =begin output 'array of ones should fail on 2' FAILED line: 14 item 1: 2 expected: 1, got: 2 (using ==) =end As expected, the output shows expected and got fields line is the line number of the expectiation inside the block the item line gives the index of the item being yielded to the block, and the item itself === Warning Note the use of brackets '{ ... }' instead of 'do ... end' this is necessary because 'do .. end' does not bind strongly enough == RELATED ARTICLES: * http://blog.thoughtfolder.com/2008-11-05-rspec-should-each-matcher.html == INSTALL: * gem install rspec_multi_matchers == LICENSE: (The MIT License) Copyright (c) 2010 Greg Weber Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.