"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isDuckSort = void 0;
function isDuckSort(obj) {
    const typedObj = obj;
    return ((typedObj !== null &&
        typeof typedObj === "object" ||
        typeof typedObj === "function") &&
        typeof typedObj["name"] === "string" &&
        typeof typedObj["id"] === "number" &&
        typeof typedObj["species"] === "string" &&
        Array.isArray(typedObj["habitat"]) &&
        typedObj["habitat"].every((e) => typeof e === "string"));
}
exports.isDuckSort = isDuckSort;
