// SPDX-License-Identifier: Apache-2.0
export const safeCast = (val) => {
    if (!val)
        return val;
    return val;
};
export const isConstructible = (value) => {
    try {
        new new Proxy(value, {
            construct() {
                return {};
            },
        })();
        return true;
    }
    catch (err) {
        return false;
    }
};
