Skip to content

Commit

Permalink
[postcss] fix isObject helper
Browse files Browse the repository at this point in the history
- Closes #295
  • Loading branch information
lukeed committed Aug 9, 2017
1 parent c58db63 commit 8de0e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/postcss/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const base = { plugins:[], options:{} };
const filenames = ['.postcssrc', '.postcssrc.js', 'postcss.config.js', 'package.json'];

const isString = any => typeof any === 'string';
const isObject = any => Boolean(any) && (any.constructor === Object);
const isObject = any => !!any && typeof any === 'object' && !Array.isArray(any);
const isEmptyObj = any => isObject(any) && Object.keys(any).length === 0;

module.exports = function (task, utils) {
Expand Down

0 comments on commit 8de0e32

Please sign in to comment.