MCPcopy Create free account
hub / github.com/JacksonTian/fks / parse

Function parse

fks_chart/bower_components/angular/angular.js:18190–18203  ·  view source on GitHub ↗
(viewValue)

Source from the content-addressed store, hash-verified

18188 separator = match && new RegExp(match[1]) || attr.ngList || ',';
18189
18190 var parse = function(viewValue) {
18191 // If the viewValue is invalid (say required but empty) it will be `undefined`
18192 if (isUndefined(viewValue)) return;
18193
18194 var list = [];
18195
18196 if (viewValue) {
18197 forEach(viewValue.split(separator), function(value) {
18198 if (value) list.push(trim(value));
18199 });
18200 }
18201
18202 return list;
18203 };
18204
18205 ctrl.$parsers.push(parse);
18206 ctrl.$formatters.push(function(value) {

Callers 1

$SceProviderFunction · 0.85

Calls 2

isUndefinedFunction · 0.85
forEachFunction · 0.85

Tested by

no test coverage detected