isAscii

external fun isAscii(input: Buffer<*>): Boolean(source)
external fun isAscii(input: ERROR CLASS: Symbol not found for ArrayBuffer): Boolean(source)
external fun isAscii(input: ERROR CLASS: Symbol not found for js.typedarrays.TypedArray<*, *, *, *>): Boolean(source)

This function returns true if input contains only valid ASCII-encoded data, including the case in which input is empty.

Throws if the input is a detached array buffer.

Since

v19.6.0, v18.15.0

Parameters

input

The input to validate.