object.test.ts

import { isObject } from "utils/object";

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

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