Skip to content

Instantly share code, notes, and snippets.

View HackPoint's full-sized avatar

HackP0!nt HackPoint

  • Israel
View GitHub Profile
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) {
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;