Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Consider allowing jagged options parameters #6

@yavorg

Description

@yavorg

Today if I want to send just some of the parameters using the parametrized method signature, not the object, I am tempted to set the parameters I don't want to 'null' or 'undefined'.

mpns.sendFlipTile(pushUri, null, 5, 'amazing');

This will result in an error because null tests as typeof == 'object' and our current logic will assume I'm using the options object method signature. I suspect lots of folks will be bitten by this and get confused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions