1.0.7 • Published 4 years ago

sorting-customer v1.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

Customer Utility v1.0.7

Customer Utility is a repository of some inbuilt function that comes handy for both typescript and javascript based product.

Step-1: Installation

npm i sorting-customer

Step-2: Importing

import { Util } from 'sorting-customer';

Step-3: Integration

Create a instance inside the class:

util = new Util();

Then using Dot(.) operator access respective function.

this.util.getDistanceFromLatLonInKm(lat1, lon1, lat2, lon2)

List of functions:

So far there is three function:

  • getDistanceFromLatLonInKm(lat1, lon1, lat2, lon2)

    • This functions takes Latitude and Longitude of two location and returns crow flies distance between those location.
  • sortByUserId(a: any, b: any)

    • This functions takes two customer object as parameter and sort them as per their integer user_id.
  • degree2Radian(deg: number)

    • This functions takes degree as input and returns corresponding radian value..
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago