Skip to content

Commit

Permalink
chore: isPlainObject (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsi authored Apr 2, 2024
1 parent 7cf403e commit ba1af7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/plugins/playlist/playlist.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isObject from 'lodash/isObject';
import isPlainObject from 'lodash/isPlainObject';
import { sliceProperties } from 'utils/slicing';
import { PLAYER_EVENT } from 'utils/consts';
import { getCloudinaryUrl } from 'plugins/cloudinary/common';
Expand All @@ -22,7 +22,7 @@ const playlist = (player, options = {}) => {
playlistWidget.dispose();
}

if (isObject(options.playlistWidget)) {
if (isPlainObject(options.playlistWidget)) {
if (player.fluid_) {
options.playlistWidget.fluid = true;
}
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/playlist/utils/api.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import camelCase from 'lodash/camelCase';
import isObject from 'lodash/isObject';
import isPlainObject from 'lodash/isPlainObject';
import { parseISO8601 } from './time';

const TIME_FIELDS = ['created_at', 'updated_at'];

const normalizeJsonResponse = (obj) => {
const agg = {};

if (isObject(obj)) {
if (isPlainObject(obj)) {
Object.keys(obj).reduce((agg, key) => {
const newKey = camelCase(key);

Expand Down

0 comments on commit ba1af7b

Please sign in to comment.