isEncoding
BufferConstructor.isEncoding
isEncoding(encoding
): encoding is BufferEncoding
Returns true
if encoding
is the name of a supported character encoding,
or false
otherwise.
Parameters
encoding
stringRequiredA character encoding name to check.
Returns
encoding is BufferEncoding
encoding
encoding is BufferEncodingSince
v0.9.1
Was this section helpful?