@yuricoden/simplifyjs

0.0.5 • Public • Published

alt text

simplify.js

simplify.js is a powerfull functional JavaScript library. NPM Version

It is a speed-fast library for working with objects and arrays. Also included are methods for working with functions such as curry,memoize and etc...

Wiki |

Usage:

Connect the script in your browser:

<script src="library/simplify.min.js"></script>

or add to project

import 'fy' from 'simplify';

Try code:

        const product = [
          { product: 'bitcoin' },
          { product: 'liteoin'  },
          { product: 'goldcoin' }
        ];

        const coins = [
            {
            name: 'coin',
            value: '32133'
            },
            {
            name: 'coin',
            value: '133'
            },
            {
            name: 'coin',
            value: '767'
            }
        ];

        let result = fy.zip(coins, product, function(coin,product) {
          coin.products = product;
          return coin
        });

curry, memoize also is in the assembly

      function multiplication(x,y) {
        return x * y
      }
      let fun = fy.curry(add)
      console.log(fun(2)(6))

Package Sidebar

Install

npm i @yuricoden/simplifyjs

Weekly Downloads

4

Version

0.0.5

License

ISC

Last publish

Collaborators

  • yuricoden