Skip to content

Instantly share code, notes, and snippets.

@falkolab
Created December 5, 2015 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save falkolab/6642c5e0b1fb7c877323 to your computer and use it in GitHub Desktop.
Save falkolab/6642c5e0b1fb7c877323 to your computer and use it in GitHub Desktop.
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