Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 948 Bytes

record.seek.md

File metadata and controls

37 lines (30 loc) · 948 Bytes

Record.seek

The seek function is established to seek in the array.

Sample

var record = new Record([
	{"data1":"hello world", "data2":123, "data3":new Date("2016/12/13") },
	{"data1":"hello human", "data2":456, "data3":new Date("2016/12/14") }
]);
record.seek("data2","eq",123);

API

CallingReturning
record .seek ( field , action , value )Record
ParametersTypeDescription
fieldStringThe field name of the array.
actioneq|gt|lt|like|!eq|!gt|!lt|!likeThe comparison action. eq: equal, gt: greater than, lt: less than, like: contain, !eq: not equal, !gt: not greater than, !let: not less than, !like: not contain,
valueString|Number|Date|BooleanThe value to compare.