Misc

Methods

(static) formatFrequency(hertz) → {string}

Description:
  • This function takes in a frequency in Hz and returns a more readable result in kHz or mHz.

Source:
Parameters:
Name Type Description
hertz number
Returns:

A string value containing the number and scale of the parameter passed.

Type
string

(static) getMedian(array) → {number}

Description:
  • This function returns the median value from an array.

Source:
Parameters:
Name Type Description
array Array.<number>

Array of numbers.

Returns:

The median value from the array.

Type
number

(static) showToast(message, status)

Description:
  • Displays a small popup message in the bottom of the screen.

Source:
Parameters:
Name Type Description
message string

Message you want to display within the popup.

status string

Style of the popup window :

  • toast-success
  • toast-info
  • toast-error