How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • import assert from 'assert/strict';
    
    assert.fail('a', 'b');
    // AssertionError [ERR_ASSERTION]: 'a' != 'b'
    
    assert.fail(1, 2, undefined, '>');
    // AssertionError [ERR_ASSERTION]: 1 > 2
    
    assert.fail(1, 2, 'fail');
    // AssertionError [ERR_ASSERTION]: fail
    
    assert.fail(1, 2, 'whoops', '>');
    // AssertionError [ERR_ASSERTION]: whoops
    
    assert.fail(1, 2, new TypeError('need array'));
    // TypeError: need array
    Docs
  • assert.fail();
    assert.fail("custom error message");
    assert.fail(1, 2);
    assert.fail(1, 2, "custom error message");
    assert.fail(1, 2, "custom error message", ">");
    assert.fail(1, 2, undefined, ">");
    
    Docs
  • const assert = require('assert/strict');
    
    assert.fail();
    // AssertionError [ERR_ASSERTION]: Failed
    
    assert.fail('boom');
    // AssertionError [ERR_ASSERTION]: boom
    
    assert.fail(new TypeError('need array'));
    // TypeError: need array
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples