This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
AriaNg/src/scripts/filters/reverse.js

14 lines
268 B
JavaScript
Raw Normal View History

2018-04-05 18:58:14 +02:00
(function () {
'use strict';
angular.module('ariaNg').filter('reverse', function () {
return function(array) {
if (!array) {
return array;
}
return array.slice().reverse();
};
});
}());