UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

9 lines (8 loc) 294 B
import { isArray } from './isArray.js'; import { isBinary } from './isBinary.js'; import { isSet } from './isSet.js'; export const isObject = (candidate) => typeof candidate === 'object' && candidate !== null && !isArray(candidate) && !isSet(candidate) && !isBinary(candidate);