
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@pro-functional/objects
Advanced tools
yarn add --exact @pro-functional/objects
isObject A type checker to evaluate the given value as an
NonNullable<object>
isObject(null)
// false
isObject(undefined)
// false
isObject(5)
// false
isObject('random value')
// false
isObject({})
// true
isObjectWithProps A type checker that verifies the provided value to be an object with the provided property keys
isObjectWithProps(null, 'name', 'id')
// false
isObjectWithProps(undefined, 'name', 'id')
// false
isObjectWithProps(5, 'name', 'id')
// false
isObjectWithProps('random value', 'name', 'id')
// false
isObjectWithProps({}, 'name', 'id')
// false
isObjectWithProps({ name: 'bob' }, 'name', 'id')
// false
isObjectWithProps({ name: 'bob', id: '007', uid: 'ga98as7fuhk' }, 'name', 'id')
// true
interface User {
name: string
id: string
}
const maybeUser = { name: 'bob', id: '007', uid: 'ga98as7fuhk' }
const user: User | null = isObjectWithProps(maybeUser, 'name', 'id')
? maybeUser
: null
// ✅ assignment is type-correct
makeEnumResolver Create a resolver for an Enum allowing you to map a text back to the enum. The fallback allows a guaranteed response.
enum Colors {
Green = 'green',
Blue = 'blue',
Invalid = 'invalid',
}
const resolveColor = makeEnumResolver(Colors, Colors.Invalid)
resolveColor('green')
// Colors.Green
resolveColor('blue')
// Colors.Blue
resolveColor('purple')
// Colors.Invalid
FAQs
Tools to simplify pure functions
The npm package @pro-functional/objects receives a total of 2 weekly downloads. As such, @pro-functional/objects popularity was classified as not popular.
We found that @pro-functional/objects demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.