Skip to content

Instantly share code, notes, and snippets.

@falkolab
Created Dec 5, 2015
Embed
What would you like to do?
underscore string mixin
//******** underscore.string ***********
var _ = require("alloy/underscore")._;
// Import Underscore.string to separate object,
// because there are conflict functions (include, reverse, contains)
_.str = require('underscore.string');
// Mix in non-conflict functions to Underscore namespace if you want
_.mixin(_.str.exports());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment