dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
9 lines (8 loc) • 324 B
JavaScript
import { isObject } from '../../../../utils/validation/isObject.js';
import { $IS_EXTENSION } from './isExtension.js';
export const $DELETE = Symbol('$DELETE');
export const $delete = (value) => ({
[$IS_EXTENSION]: true,
[$DELETE]: value
});
export const isDeletion = (input) => isObject(input) && $DELETE in input;