UNPKG

dynamodb-toolbox

Version:

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

6 lines (5 loc) 300 B
import { isObject } from '../../../../utils/validation/isObject.js'; import { $IS_EXTENSION } from './isExtension.js'; export const $SET = Symbol('$SET'); export const $set = (value) => ({ [$IS_EXTENSION]: true, [$SET]: value }); export const isSetting = (input) => isObject(input) && $SET in input;