Skip to content

JSTypedArray<T>.As<TOther> method

Tries to create a T struct from this instance. It returns null if the T struct cannot be created.

C#
public TOther? As<TOther>()
    where TOther : struct, IJSValue<TOther>
parameterdescription
TOtherA struct that implements IJSValue interface.

Return Value

Nullable value that contains T struct if it was successfully created or null if it was failed.

See Also

Released under the MIT license