mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
10 lines
260 B
JavaScript
10 lines
260 B
JavaScript
import { falsey } from './utils';
|
|
import compact from '../src/compact';
|
|
|
|
describe('compact', () => {
|
|
it('should filter falsey values', () => {
|
|
const array = ['0', '1', '2'];
|
|
expect(compact(falsey.concat(array))).toEqual(array);
|
|
});
|
|
});
|