array.test.ts

import { isArray } from "utils/array";

import { expect, test } from "bun:test";

test("isArray", () => {
  expect(isArray([])).toEqual(true);
  expect(isArray({})).toEqual(false);
  expect(isArray("")).toEqual(false);
  expect(isArray(1)).toEqual(false);
  expect(isArray(null)).toEqual(false);
  expect(isArray(undefined)).toEqual(false);
});
Revisions
DateHash
2024-04-13
2024-04-01
2024-03-31
2024-03-31
Navigation
Previousobject.test.ts
Uputils