Utils: `deps`
Table of contents
Variables
Functions
Variables
geoHash
• geoHash: Object
Type declaration
Name | Type | |||
---|---|---|---|---|
adjacent | (geoHash : string , direction : "N" \ | "S" \ | "E" \ | "W" ) => any |
bounds | (geoHash : string ) => { ne : number ; sw : number } | |||
decode | (geoHash : string ) => { lat : number ; lon : number } | |||
encode | (lat : number , lon : number , precision? : number ) => string | |||
neighbours | (geoHash : string ) => { n : number ; ne : number ; nw : number ; s : number ; se : number ; sw : number ; w : number } |
Defined in
types/latlon-geohash/index.d.ts:34
Functions
clone
▸ clone(input
): any
Shallow clone an object
Parameters
Name | Type |
---|---|
input | unknown |
Returns
any
Defined in
cloneDeep
▸ cloneDeep<T
>(input
): T
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
input | T |
Returns
T
Defined in
escapeString
▸ escapeString(input
): string
Escape characters in string and avoid double escaping
Parameters
Name | Type | |
---|---|---|
input | string \ | number |
Returns
string
Defined in
packages/utils/src/deps.ts:108
getTypeOf
▸ getTypeOf(val
): string
Determine the type of an input
Parameters
Name | Type |
---|---|
val | any |
Returns
string
a human friendly string that describes the input
Defined in
isPlainObject
▸ isPlainObject(input
): boolean
Detect if value is a plain object, that is, an object created by the Object constructor or one via Object.create(null)
Parameters
Name | Type |
---|---|
input | unknown |
Returns
boolean