1.0.6 • Published 5 months ago

msrd-helper-lib v1.0.6

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

HelpersWorkspace

This library was generated with Angular CLI version 13.2.5.

Installation

Using npm:

$ npm i msrd-helper-lib

In Angular:

import { MsrdHelperLibService } from 'msrd-helper-lib';

class Consumer() {
    private colors: string[]
    constructor(private helper: MsrdHelperLibService) {
      this.colors = this.helper.getRandomHexaColor()
    }
}

Library Methods

  • getRandomHexaColor(): string[]: Returns a random hexadecimal pair values (ex. '#f80404', '#c40303').
  • ObjectsAreEqual(a: object, b: object): boolean: Returns True if two objects are equal.
  • SortBy(iterable: any[], property_name: string): any[]: Sorts an iterable object by property name.
  • SortByDesc(iterable: any[], property_name: string): any[]: Same as above but descendingly.
  • GroupBy(iterable: any[], property_name: string): Map<any, any>: Returns a Map object, grouped by property name.
1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.2

10 months ago

1.0.3

10 months ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago