Fonksiyon
Simplest Function Overloading
How can i install?
npm install fonksiyon
Pros
- Fast
- Small
- YES Optional parameters..
Cons
- No Grouped parameters (it will come soon. string, [number, string])
- No continous parameters (it will come soon. string, number...)
We are working for the cons..
Supported Types
- string
- number
- array
- object
- function
- null or undefined (represented as null)
- any (represented as can get any param)
- own classes
How can i use this
var fonksiyon = ;var sayhello = ; ;
Console output;
Hello furkanWelcome back fatma and kadir :)
More?
var fonksiyon = ; { thisname = name;}/* _________________________________ | you must put name to function | |_________________________________| | vvar person = new function Person(name) {*/ var sayhello = ; var me = "dogan";var him = "some guy";;
Optional parameters
use * statement for making optional parameter
var opt = ;
Empty parameters
use null statement for making empty parameter
var emptyparam = ;
Any parameters
use any statement for allow all parameters
var anyparam = ;