Open this example in the interactive library
Source code
import * as z from "node:zlib";
const data = Buffer.from("sample sample sample");
console.log(z.crc32("ple", z.crc32("sam")) === z.crc32("sample"));
Sample output
true

Open this example in the interactive library
import * as z from "node:zlib";
const data = Buffer.from("sample sample sample");
console.log(z.crc32("ple", z.crc32("sam")) === z.crc32("sample"));
true