Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
bokeh / server / static / js / lib / core / util / refs.js
Size: Mime:
import { isPlainObject } from "./types";
import { keys } from "./object";
// Determine whether an object has the proper format of a Bokeh reference
//
// @param arg [Object] the object to test
// @return [bool] whether the object is a reference
//
// @note this function does not check that the id and types are valid,
//   only that the format is correct (all required keys are present)
//
export function is_ref(arg) {
    if (isPlainObject(arg)) {
        const attrs = keys(arg);
        return attrs.length == 1 && attrs[0] == "id";
    }
    return false;
}
//# sourceMappingURL=refs.js.map