fika-helpers
v1.0.1
Published
Useful JavaScript helper methods.
Downloads
5
Maintainers
Readme
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