Skip to content

Make parseBoolean idempotent

Inactive Account requested to merge winh-idempotent-parseboolean into master

What does this MR do?

Make sure that always parseBoolean(parseBoolean(value)) === parseBoolean(value) similar to parseInt().

Side effect: parseBoolean(true) === true

What are the relevant issue numbers?

emerged from private Slack conversation after https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23283.

Does this MR meet the acceptance criteria?

Merge request reports

Loading