How to use the is-obj function in is-obj

To help you get started, we’ve selected a few is-obj 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 cloudinary / cloudinary-video-player / src / video-player.js View on Github external
this.videojs.on('playlistcreated', () => {
        if (_playlistWidget) {
          _playlistWidget.dispose();
        }
        const plwOptions = _options.playlistWidget;

        if (isObj(plwOptions)) {
          if (_options.fluid) {
            plwOptions.fluid = true;
          }
          if (_options.cloudinary.fontFace) {
            plwOptions.fontFace = _options.cloudinary.fontFace;
          }
          _playlistWidget = new PlaylistWidget(this.videojs, plwOptions);
        }
      });
    };
github cloudinary / cloudinary-video-player / src / video-player.js View on Github external
this.playlistWidget = (options) => {
      if (!options && !_playlistWidget) {
        return false;
      }

      if (!options && _playlistWidget) {
        return _playlistWidget;
      }

      if (isObj(options)) {
        _playlistWidget.options(options);
      }

      return _playlistWidget;
    };
  }

is-obj

Check if a value is an object

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis

Popular is-obj functions