Package-level declarations

Types

Link copied to clipboard
class CancellableActionHandle(id: Int, isInterval: Boolean = false)

A handle to a setTimeout or setInterval call which can be used to cancel it.

Functions

Link copied to clipboard

Convert a String for a name that is using camelCase into kebab-case.

Link copied to clipboard

A helper function to invoke a block of code on the next event loop.

Link copied to clipboard

A version of setInterval where the action is fired immediately then put on a timer.

Link copied to clipboard

Convert a String for a name that is using kebab-case into camelCase.

Link copied to clipboard

Convert a String for a name that is using kebab-case into TitleCamelCase.

Link copied to clipboard

A more Kotlin-friendly version of window.setInterval (with a Duration& the lambda parameter last).

A version of setInterval where the initial delay is different from the followup delay.

Link copied to clipboard

A more Kotlin-friendly version of window.setTimeout (with a Duration& the lambda parameter last).

Link copied to clipboard

Convert a String for a name that is using TitleCamelCase into kebab-case.

Link copied to clipboard

Quote a CSS string (unless it is already quoted).