is controller

This section is a work in progress.

Examples:

import { bool, Canister, ic, Principal, query } from 'azle/experimental';

export default Canister({
    // determines whether the given principal is a controller of the canister
    isController: query([Principal], bool, (principal) => {
        return ic.isController(principal);
    })
});