UNPKG

dynamodb-toolbox

Version:

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

9 lines (8 loc) 331 B
import { isObject } from '../../../../utils/validation/isObject.js'; import { $IS_EXTENSION } from './isExtension.js'; export const $PREPEND = Symbol('$PREPEND'); export const $prepend = (value) => ({ [$IS_EXTENSION]: true, [$PREPEND]: value }); export const isPrepending = (input) => isObject(input) && $PREPEND in input;