Sha256: f61582f9f4ce364b4230f05cdea9cade1126721108078f292f9dea910b6bb35b

Contents?: true

Size: 435 Bytes

Versions: 38

Compression:

Stored size: 435 Bytes

Contents

/**
 * @ngdoc filter
 * @name  Bastion.components.formatters.filter:arrayToString
 *
 * @description
 *
 *
 * @example
 *
 */
angular.module('Bastion.components.formatters').filter('arrayToString', [function () {
    return function (toFormat, stringToPluck, separator) {
        stringToPluck = stringToPluck || 'name';
        separator = separator || ', ';
        return _.map(toFormat, stringToPluck).join(separator);
    };
}]);

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
bastion-6.1.13 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.12 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.11 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.10 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.9 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.8 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.7 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.6 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.5 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.4 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.3 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.2 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-5.1.1 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.1 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.1.0 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-6.0.0 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-5.1.0 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-5.0.10 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-5.0.9 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js
bastion-5.0.8 app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js