Skip to content

Instantly share code, notes, and snippets.

@yonatanmn
yonatanmn / Arguments Checker (api)
Last active August 29, 2015 14:22
data types and argument checker for functions, pass a string or a function to see if your arguments pass, otherwise it will throw an error. This makes javascript functions to accept static types rather than dynamic, and reduces run-time bugs
/* ***** API ***** */
/*
1.
Function.prototype.check({Checker}|[{Checker}],{*})
someFunc.check(someChecker,someData);
{checker} can be of type:
string - to check primitive data types:
@yonatanmn
yonatanmn / Striped-background-for-Sass-(scss-mixin).markdown
Last active January 25, 2017 06:35
Striped background for Sass (scss mixin)

Striped background for Sass (scss mixin)

choose color, intensity (number of stripes) and direction

A Pen by yonatanmn on CodePen.

License.