How to use the core-js/es6/symbol function in core-js

To help you get started, we’ve selected a few core-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github z4o4z / es6-store / src / index.js View on Github external
import Symbol from 'core-js/es6/symbol';

const __ls = Symbol('localStorage');
const __store = Symbol('store');
const __window = Symbol('window');
const __name = Symbol('name');
const __isWriting = Symbol('isWriting');
const __error = Symbol('error');

function isWindowAndHasLS(window) {
  return window && window.localStorage;
}

function isValidObject(object) {
  return (
    object && typeof object === 'object' && !Array.isArray(object) && !(object instanceof Error)
  );
}

function logError(err) {
  console.error(err);
}
github z4o4z / es6-store / src / index.js View on Github external
import Symbol from 'core-js/es6/symbol';

const __ls = Symbol('localStorage');
const __store = Symbol('store');
const __window = Symbol('window');
const __name = Symbol('name');
const __isWriting = Symbol('isWriting');
const __error = Symbol('error');

function isWindowAndHasLS(window) {
  return window && window.localStorage;
}

function isValidObject(object) {
  return (
    object && typeof object === 'object' && !Array.isArray(object) && !(object instanceof Error)
  );
}

function logError(err) {
  console.error(err);
}
github z4o4z / es6-store / src / index.js View on Github external
import Symbol from 'core-js/es6/symbol';

const __ls = Symbol('localStorage');
const __store = Symbol('store');
const __window = Symbol('window');
const __name = Symbol('name');
const __isWriting = Symbol('isWriting');
const __error = Symbol('error');

function isWindowAndHasLS(window) {
  return window && window.localStorage;
}

function isValidObject(object) {
  return (
    object && typeof object === 'object' && !Array.isArray(object) && !(object instanceof Error)
  );
}

function logError(err) {
  console.error(err);
}

function error(message) {
github z4o4z / es6-store / src / index.js View on Github external
import Symbol from 'core-js/es6/symbol';

const __ls = Symbol('localStorage');
const __store = Symbol('store');
const __window = Symbol('window');
const __name = Symbol('name');
const __isWriting = Symbol('isWriting');
const __error = Symbol('error');

function isWindowAndHasLS(window) {
  return window && window.localStorage;
}

function isValidObject(object) {
  return (
    object && typeof object === 'object' && !Array.isArray(object) && !(object instanceof Error)
  );
}

function logError(err) {
  console.error(err);
github z4o4z / es6-store / src / index.js View on Github external
import Symbol from 'core-js/es6/symbol';

const __ls = Symbol('localStorage');
const __store = Symbol('store');
const __window = Symbol('window');
const __name = Symbol('name');
const __isWriting = Symbol('isWriting');
const __error = Symbol('error');

function isWindowAndHasLS(window) {
  return window && window.localStorage;
}

function isValidObject(object) {
  return (
    object && typeof object === 'object' && !Array.isArray(object) && !(object instanceof Error)
  );
}

function logError(err) {
github z4o4z / es6-store / src / index.js View on Github external
import Symbol from 'core-js/es6/symbol';

const __ls = Symbol('localStorage');
const __store = Symbol('store');
const __window = Symbol('window');
const __name = Symbol('name');
const __isWriting = Symbol('isWriting');
const __error = Symbol('error');

function isWindowAndHasLS(window) {
  return window && window.localStorage;
}

function isValidObject(object) {
  return (
    object && typeof object === 'object' && !Array.isArray(object) && !(object instanceof Error)
  );
}