This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export interface SortedArrayOpts { | |
| filter?: Function; | |
| compare?: Function | string; | |
| unique?: boolean; | |
| resume?: boolean; | |
| } | |
| export class SortedArray<T> extends Array<T> { | |
| private readonly _filter: Function; | |
| private readonly _compare: Function; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module('ny.logger', []).provider('Logger', [function () { | |
| var isEnabled = true; | |
| this.enabled = function(_isEnabled) { | |
| isEnabled = !!_isEnabled; | |
| }; | |
| this.$get = ['$log', function($log) { | |
| var Logger = function(context) { | |
| this.context = context; | |
| }; | |
| Logger.getInstance = function(context) { |