Contents

init(range:inContext:)

Creates a JavaScript representation of the specified range.

Declaration

init!(range: NSRange, inContext context: JSContext!)

Parameters

  • range:

    A range.

  • context:

    The JavaScript context in which to create the value.

Return Value

A JavaScript object representing the specified range.

Discussion

Converting a range creates a JavaScript object value with fields named location and length.

See Also

Creating JavaScript Values