Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Type shortcuts #4

Closed
wants to merge 4 commits into
from

Conversation

Projects
None yet
1 participant
Owner

nathggns commented Aug 19, 2013

Something like this

overload.add(obj, 'method', ['string', 'Array'], function(a, b) {
    // a is a string, b is an array
});

If the passed variable is an object, it would use instanceof to compare, unless the type is declared to be exactly object. Otherwise, it will use typeof to compare.

Owner

nathggns commented Aug 19, 2013

Woops, can't merge into master. Will need to manually merge this into development. Sucks :(

Owner

nathggns commented Aug 19, 2013

Should use overload.types instead.

@nathggns nathggns closed this Aug 19, 2013

@nathggns nathggns reopened this Aug 19, 2013

Owner

nathggns commented Aug 19, 2013

merged this into development.

@nathggns nathggns closed this Aug 19, 2013

@nathggns nathggns deleted the issue-4 branch Aug 19, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment