dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
6 lines (5 loc) • 309 B
JavaScript
import { isObject } from '../../../../utils/validation/isObject.js';
import { $IS_EXTENSION } from './isExtension.js';
export const $REMOVE = Symbol('$REMOVE');
export const $remove = () => ({ [$IS_EXTENSION]: true, [$REMOVE]: true });
export const isRemoval = (input) => isObject(input) && $REMOVE in input;