Skip to content

stellar-labs/prototype-storm

Repository files navigation

Prototype Storm

Supercharge your Javascript!

[18, 25, {name: 'John', age: 32}].average(); // 25
[1, 2, 3, 4].first({ count: 2 }) // [1, 2]
    .whereGreater({ than: 0 }) // [1, 2]
    .last(); // 2

Summary

Installation

Web

<!doctype html>
<html>
  <head>
    <meta charset='utf-8'>
    <script src='https://rawgit.com/stellar-labs/master/dist/prototype-storm.min.js' defer></script>
  </head>
  <body></body>
</html>

Use any of the CDN available on the documentation to use them on your web app.

NPM

First, run:

$ npm install --save prototype-storm@0.* # npm
$ yarn add prototype-storm@0.* # Yarn

Then, on your file, you can use:

require('prototype-storm'); // CommonJS
import 'prototype-storm'; // ES Modules