diff --git a/docs/README.md b/docs/README.md index 6870801bf..3e78365d1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -23,13 +23,13 @@ assert (test: boolean, message: string, code: number = ExtError.CODES.ASSERT, da ``` -Checks that `test` is a true value. If value is `false` (or `false-ish`), it throws an ExtError with the supplied `message` and an optional `code` and `data`. When `test` passes, `true` is returned. +Checks that `test` is a truthy value. If value is falsy (`null`, `undefined`, `false`, ...), it throws an ExtError with the supplied `message` and an optional `code` and `data`. When `test` passes, `true` is returned. ```js const assert = require('@polkadot/util/assert'); -assert(true === true, 'True should be true'); // true returned -assert(false === true, 'False should not be true'); // ExtError thrown +assert(true, 'True should be true'); // true returned +assert(false, 'False should not be true'); // ExtError thrown ``` ## Logger diff --git a/package.json b/package.json index 2b37f9225..774644ed5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/util", - "version": "0.6.4", + "version": "0.6.5", "description": "A collection of useful utilities for @polkadot", "main": "index.js", "keywords": [