1.0.4 • Published 6 years ago

ts-querying v1.0.4

Weekly downloads
8
License
ISC
Repository
github
Last release
6 years ago

ts-querying

A fluent interface to query any array

Installation

npm install ts-querying --save
yarn add ts-querying
bower install ts-querying --save

Usage

Javascript

var TsQuery = require('ts-querying');
var result = TsQuery.create([-5, 1, 2, 7, 9])
    .where((x, i) => x === i)
    .result();
console.log(result);
Output should be '[1, 2]'

TypeScript

import { TsQuery } from 'ts-querying';
var result = index.TsQuery.create([1, 2, 3])
    .select((x, i) => (x + i).toString())
    .result();
console.log(result);
Output should be '["1", "3", "5"]'

AMD

define(function(require,exports,module){
    var TsQuery = require('ts-querying');
});

Test

npm run test
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago