Skip to contents

Check if the provided object is of a certain length. If not, stop with an error.

Usage

validateLength(object, length)

Arguments

object

Object which length will be checked

length

Expected length