Skip to main content
Latest
function default
import { default } from "https://deno.land/x/string@v0.1.2/stripBom.ts";

Strip UTF-8 byte order mark (BOM) from a string.

Examples

Example 1

import { stripBom } from "https://deno.land/x/string/mod.ts";
stripBom('\uFEFFunicorn');
//=> 'unicorn'

Parameters

str: string

Returns

string