yate-stdlib

Yate Standard Lib

Usage no npm install needed!

<script type="module">
  import yateStdlib from 'https://cdn.skypack.dev/yate-stdlib';
</script>

README

Yate Standard Lib

Batch of usefull helpers for yate

array

  • arr-concat(arr1, arr2)

borschik

cookie

date

  • date-is-today(unix-timestamp)
  • date-is-week-current(unix-timestamp)
  • date-is-yesterday(unix-timestamp)
  • date-now()
  • date-today-date()

math

  • math-abs(number)
  • math-random()
  • math-round(number)
  • math-sum(nodeset)

modernizr

string

  • encode-uri-component(str)
  • str-contains(str, substr)
  • str-length(str)
  • str-substr(str, start, length)
  • str-substr-after(str, search)
  • str-substr-before(str, search)
  • str-to-lower(str)
  • str-to-upper(str)