How to use the first function from underscore
Find comprehensive JavaScript underscore.first code examples handpicked from public code repositorys.
95 96 97 98 99 100 101 102 103 104
} else { var paths; if (!_.isEmpty(path.match(/^\[\d\]/))) { paths = path.replace(/^[\[\]]/g, '').split(/\./); nPath = _.first(paths[0].replace(/\]/, '')); } else { paths = path.split(/[\.\[]/); nPath = _.first(paths); }
0
0
1
+ 11 other calls in file
underscore.keys is the most popular function in underscore (11266 examples)