inc

Increments the given number by 1. Useful for counters and mathematical operations.

Import

import { inc } from '@fullstacksjs/toolbox';

Signature

function inc(n: number): number {}

Examples

inc(3) // 4
inc(5) // 6