Create Validation Function

Prudence.CreateFn(fn, errMsg)

Creates a Validation Function.

Arguments
  • fn (function) – The function to use.

  • errMsg (string) – An error message to attach.

Returns

Validation Function.