Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/utils/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,5 @@ const configurablePropDefaultFnName = makePropConfigurable({}, '', '').default.n

// Detect wether the given value is currently a function
// and isn't the props default function
export const hasPropFunction = fn => isFunction(fn) && fn.name !== configurablePropDefaultFnName
export const hasPropFunction = fn =>
isFunction(fn) && fn.name && fn.name !== configurablePropDefaultFnName