How to use the surround function from underscore.string

Find comprehensive JavaScript underscore.string.surround code examples handpicked from public code repositorys.

10
11
12
13
14
15
16
17
18
19
20
21
22
 */


var utils = new Utils();


utils.backtick = function(field) {
 return field.indexOf(' ') >= 0 ? _str.surround(field, '`') : field;
};


utils.quote = function(outValues, operator, value) {
  if (operator === 'IN' || operator === 'NOT IN') {
fork icon27
star icon78
watch icon0

514
515
516
517
518
519
520
521
522
523
succ() {
  return this.shift(1);
}

surround(wrap) {
  const res = s.surround(this.__value__, wrap.__value__);
  return new NyxString(res);
}

"swap-case"() {
fork icon0
star icon0
watch icon0

+ 7 other calls in file