import { AssertionFailed } from '../../errors'; import { error, Result, value } from 'defekt'; const assertArrayIsNotEmpty = function ( actual: TContent[] ): Result { if (actual.length > 0) { return value(); } return error(new AssertionFailed({ message: 'The array is empty.' })); }; export { assertArrayIsNotEmpty };