A delimiter for PType.iterables when the List-value is a String.
if true
, PType.iterable items will be sorted by byte-size.
Will join
a PType.iterable with the specified value.
var myIntList = [1,2,3,4];
var myIntType = PT.L.Int({ join: ' + ' });
console.log(myIntType.sanitze(myIntList));
// "1 + 2 + 3 + 4"
A 2-length string Array
, indicating characters to wrap a joined, PType.iterable with.
var myIntList = [1,2,3,4];
var myIntType = PT.L.Int({ join: '|', enclose: ["<",">"] });
console.log(myIntType.sanitze(myIntList));
// "<1|2|3|4>"
Will map
a PType.iterable with the specified callback.
An Array
of items that can be used within {@link PTOpts.sanitzer} and PTArgs.map callbacks
.
if true
, PType.iterable "leveled" items (i.e: value
@level
) are considered
Edits/Additions, while "non-leveled" items (i.e: value
) are marked separately for
removal.
if true
, PType.iterable items will be grouped according to their key
(i.e: key
@value
).
Toggles all of the restriction-properties
on or off.
A list of Key
/Value
pairs for restricting any type.
An array
of values
to ignore in {@link PTArgs.select} restrictions.
An Array
of Array.slice()
parameters for restricting the length of a PType.iterable.
Array[0] = 2; // Where the slice STARTS.
Array[1] = 10; // The LENGTH of the slice, or undefined.
The increment a Number-PType must adhere to.
The minimum amount a Number-PType can be.
The maximum amount a Number-PType can be.
A RegexP
pattern a Text
-type must match.
If true
, this type should be obfuscated.
A customizer
object
for PTypes.