Skip to content

Instantly share code, notes, and snippets.

@ealush
Created February 22, 2018 08:37
Show Gist options
  • Select an option

  • Save ealush/70b698449f5376b40c801192ba97ba73 to your computer and use it in GitHub Desktop.

Select an option

Save ealush/70b698449f5376b40c801192ba97ba73 to your computer and use it in GitHub Desktop.
enforce proxy: benchmark test case
import { enforce } from 'passable';
enforce();
enforce(1);
enforce(2).isNumber();
enforce([]).allOf({
isArray: true,
isEmpty: true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment