Sha256: 91f4969f353d1237a77847dc3cdf991bea085ebfc8c55eb91281a8f834d9911d
Contents?: true
Size: 713 Bytes
Versions: 246
Compression:
Stored size: 713 Bytes
Contents
/** * @ngdoc filter * @name Bastion.tasks.filter:taskInputCompile * * @description * Converts the task humanized structure into a flat string */ angular.module('Bastion.tasks') .filter('taskInputCompile', function () { return function (humanizedTaskInput) { var parts; if (!_.isArray(humanizedTaskInput) && !_.isObject(humanizedTaskInput)) { return humanizedTaskInput; } parts = _.map(humanizedTaskInput, function (part) { if (part.length === 2) { return part[1].text; } return part; }); return parts.join('; '); }; });
Version data entries
246 entries across 246 versions & 1 rubygems