DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
raw
history blame
403 Bytes
import {childMatcher} from "../matcher.js";
var find = Array.prototype.find;
function childFind(match) {
return function() {
return find.call(this.children, match);
};
}
function childFirst() {
return this.firstElementChild;
}
export default function(match) {
return this.select(match == null ? childFirst
: childFind(typeof match === "function" ? match : childMatcher(match)));
}