diff options
author | matthewsotoudeh <matthewsot@outlook.com> | 2015-05-10 18:41:38 -0700 |
---|---|---|
committer | matthewsotoudeh <matthewsot@outlook.com> | 2015-05-10 18:41:38 -0700 |
commit | 98b7bc251da98fee5dc2d47262351cbd8befd11d (patch) | |
tree | ac3a0e9ed4298d74d70d1c81a78ae449a4a5dd2f | |
parent | 14f554a8e40cfc8e07dcb5d25511e9dfda8e4b45 (diff) |
README spaces
-rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -39,7 +39,11 @@ jfn.defineFunction(object, propertyName, argumentTypes, defaults, function); ``` ``object`` is the object you'd like to define the function on + ``propertyName`` is the name of the function that you'd like to define on ``object`` + ``argumentTypes`` is an array of argument types to match this function with. Pass "*" to have a catchall function. + ``defaults`` is an array of default values. Note that the last value in ``defaults`` acts as the default value for the last argument specified in ``argumentTypes`` + ``function`` is the function to run |