The Object getOwnPropertySymbols() static method returns an array of all the symbol properties found in a given object.

    
    const a = Symbol('a');
    const b = Symbol('b');

    const test = {};
    test[a] = 'localSymbol';
    test[b] = 'globalSymbol';

    const testObjPopSymbols = Object.getOwnPropertySymbols(test);

    console.log(testObjPopSymbols);
    // [[object Symbol] { ... }, [object Symbol] { ... }]