Home Reference Source Repository

References

Class Summary

Static Public Class Summary
public

Stream static html to an element, where "static html" denotes "html without scripts".

Function Summary

Static Public Function Summary
public

defaults(options: Object, _defaults: Object): Object

Set default options where some option was not specified.

public

each(arr: Array<*>, fn: Function, target: Object)

Loop over each item in an array-like value.

public

eachKey(obj: Object, fn: Function, target: Object)

Loop over each key/value pair in a hash.

public

existy(thing: *): boolean

Determine if the thing is not undefined and not null.

public

Is this a function?

public

Test if token is a script tag.

public

Test if token is a style tag.

public

isTag(tok: Object, tag: String): boolean

Test if token is a script tag.

public

last(array: Array<*>): *

Get the last item in an array

public

postscribe(el: *, html: *, options: *): *

public

toArray(obj: *): Array<*>

Convert value (e.g., a NodeList) to an array.