IS NULL Helper

Helper used to replicate the behavior of Oracle NULL in JavaScript.

You might also be interested in IS [NOT] NULL transformation.

IS NULL Helper Function Definition

This helper method is used to transform the NULL predicate. It is also used by other helpers to check if a value is null. This is necessary to handle values like NaN or empty strings as nulls.

Oracle handles empty strings as null values. This helper takes that into account.

var IS_NULL = (arg) => !(arg || arg === 0);

Last updated