DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
raw
history blame
474 Bytes
import creator from "../creator.js";
import selector from "../selector.js";
function constantNull() {
return null;
}
export default function(name, before) {
var create = typeof name === "function" ? name : creator(name),
select = before == null ? constantNull : typeof before === "function" ? before : selector(before);
return this.select(function() {
return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);
});
}