javascript example icon

Home

Index

search icon
  • home icon
  • Packages>

  • underscore.string>

  • _

How to use the _ function from underscore.string

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

string_test.js

GitHub: builden/js_learn_example

builden profile picture
66
67
68
69
70
71
72
73
74
75

// 是否是空白串
console.log(_s.isBlank(' \n\t'));
//=> true

// _s._.join(separator, *strings)
console.log(_s.join('-', 'foo', 'bar', 'baz'));
//=> foo-bar-baz

// 按行拆分成字符串数组
fork icon0
star icon0
watch icon0

+ 11 other calls in file

Other functions in underscore.string

Sorted by popularity

function icon

underscore.string.slugify is the most popular function in underscore.string (323 examples)

Other popular packages:

Home

About

Privacy Policy

Example Javascript © 2024