YUI.add("recordset-filter",function(n,e){var c=n.Array,o=n.Lang;function r(e){r.superclass.constructor.apply(this,arguments)}n.mix(r,{NS:"filter",NAME:"recordsetFilter",ATTRS:{}}),n.extend(r,n.Plugin.Base,{filter:function(e,r){var t,s=this.get("host").get("records");return r&&o.isString(e)&&(t=e,e=function(e){return e.getValue(t)===r}),new n.Recordset({records:c.filter(s,e)})},reject:function(e){return new n.Recordset({records:c.reject(this.get("host").get("records"),e)})},grep:function(e){return new n.Recordset({records:c.grep(this.get("host").get("records"),e)})}}),n.namespace("Plugin").RecordsetFilter=r},"patched-v3.18.4",{requires:["recordset-base","array-extras","plugin"]});