Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
208 Bytes
import compact from '../utils/compact';
import get from '../utils/get';
import unset from '../utils/unset';
export default <T>(ref: T, name: string) =>
!compact(get(ref, name)).length && unset(ref, name);