Skip to content

[DOCS] Documentation does not match argument order #92

Open
@SystemParadox

Description

@SystemParadox

The readme states:

You may combine strict validation with warnings by passing true as the second argument, and warnFn as third.

However, the code is the other way around:

function normalize (data, warn, strict) {
  if(warn === true) warn = null, strict = true

Which one of these should be changed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions