I'm currently learning React Native Reanimated and found out that you can create "special functions" when you include a string with a specific content at the beginning of a function (https://docs.swmansion.com/react-native-reanimated/docs/2.2.0/worklets/).
I was wondering if there's a way in JavaScript to determine whether a string (with specific content) is included at the beginning of a function. Is that possible? How can you determine the content of the string?