1.0.1 • Published 9 years ago

fika-helpers v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

fika-helpers

Useful JavaScript helper methods.

Usage

Server

const _ = require("lodash");
const mixins = _.assign({}, require("fika-helpers/common"), require("fika-helpers/server"));
_.mixin(mixins);

// you can now use the common and server helpers, for example...
let a = [1,2,3,4,5];
_.sliceAt(a, 2); // [3,4,5]

Browser

const _ = require("lodash");
const mixins = _.assign({}, require("fika-helpers/common"), require("fika-helpers/browser"));
_.mixin(mixins);

// you can now use the common and browser helpers, for example...
let a = [1,2,3,4,5];
_.sliceAt(a, 2); // [3,4,5]

License

MIT