swc/crates/swc_bundler/tests/.cache/deno/26229dc3fa7de5f57e16c6d1cf5aa281c6692c78.ts

14 lines
407 B
TypeScript
Raw Normal View History

// Loaded from https://deno.land/x/segno@v1.1.0/lib/validations/isDivisibleBy.ts
// @ts-ignore allowing typedoc to build
import { assertString } from '../helpers/assertString.ts';
// @ts-ignore allowing typedoc to build
import { toFloat } from '../helpers/toFloat.ts';
export const isDivisibleBy = (str: string, num: string) => {
assertString(str);
return toFloat(str) % parseInt(num, 10) === 0;
};